Creating a bar chart can vary depending on the platform or software you are using. Here are some general steps and specific advice from various discussions that might help you.
Data Formatting
Before creating a bar chart, ensure your data is correctly formatted. One common issue in spreadsheet programs like LibreOffice is having data set as text instead of numbers. You can fix this by selecting your data cells, right-clicking, choosing "Format Cells," and setting them as numbers [1:1]. Additionally, check for hidden characters like apostrophes before numbers which can also cause issues
[1:1].
Using Software Tools
If you're using software like Unity to create a bar chart, there are tutorials available that guide you through the process. For example, a tutorial video on creating a bar chart in Unity can be found here [2:1]
[5:1]. These resources can provide step-by-step instructions and visual aids to assist in your learning.
Unpivoting Data
For complex tables with multiple columns, such as those tracking data over time across different locations, you may need to unpivot your table. This means transforming your wide table into a long format with columns for location names, dates, and values. This approach allows you to manage and visualize your data more effectively [3:1].
Custom Drawing in Android
If you're an Android developer looking to create a bar chart from scratch, you may want to explore custom drawing classes like Canvas/Paint. However, it's recommended to start with libraries that offer UI components, such as MPAndroidChart, which can simplify the process [4:2]. Creating views from scratch is ambitious but focusing on core libraries and design patterns first can be beneficial.
General Recommendations
Regardless of the method, ensure you understand the basics of graph creation, including axis labeling, data representation, and aesthetic choices. Tutorials and community advice can be invaluable, so consider reaching out to forums or subreddits dedicated to programming or data visualization for further assistance [4:3].
Hello. I'm using the latest version of libre office on Ubuntu.
I would like to make a classic bar chart but I can't. I've looked at some tutorials and I can't get my data to display. I've looked at some tutorials and I can't get my data to display. I've checked that the format of my cells is correct, but I still have the same problem. Can anyone help me? THANK YOU
I need to make a graph like this:
If you're asking for help with LibreOffice, please make sure your post includes lots of information that could be relevant, such as:
(You can edit your post or put it in a comment.)
This information helps others to help you.
Thank you :-)
Important: If your post doesn't have enough info, it will eventually be removed (to stop this subreddit from filling with posts that can't be answered).
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
> Trouble making a bar graph (self.libreoffice) > > I would like to make a classic bar chart but I can't.
Well, the most common problem is data accidentally set as TEXT.
To fix that, you need to:
and actually set them as NUMBER.
> I've checked that the format of my cells is correct, but I still have the same problem.
Hmmm... so, the second most common problem is still text, but it's this hidden "apostrophe" before numbers.
If you:
Do you see:
='1000.0
If you do, then you'll have to clean the data:
For more details on why that happens, see:
Once you get your actual number cells marked as NUMBERs/CURRENCY, the bar charts should create themselves. :)
Side Note: Also, if you want a legend, you can select:
B1:B6
and E1:E6
Right now, in your screenshot, you accidentally selected just the raw data:
If you select everything, label and all, the Insert > Chart wizard can also help pre-fill in some of that extra info for you.
> THANK YOU
You're welcome. :)
I don't know how I'm going to use this, but I definitely will.
Check out the tutorial video: https://youtu.be/hy4IID--Ue0
Continuing to create a graph in Unity we're going to display our graph as a Bar Chart.
If you have any questions post them in the comments and I'll do my best to answer them.
Cheers!
This is a very elementary question but I work at nonprofit and have no one to ask. I've tried googling and I'm still unclear on the answer.
I have a table with 18 locations. The first column is the name of all locations. The subsequent columns are titled "Month Year" and I have a year's worth of columns. Under each column, I have the number of applications each location completed.
I want to create a bar chart with the locations on the x-axis and the applications on the y-axis. I did complete it, however each month is kinda separated by a thin white line, which is bothering me. My issue is I cannot create a slicer to look at the months individually. Each month is a field, so I can only add one month as a on the slicer. I tried switching the columns with rows and then the visual isn't doing what I want.
I think the issue is how i have the data presented but I'm not sure how to fix it. Please advise, thanks.
You need to unpivot your table. So instead of wide table you will have long table. That way you will have MonthYear in same column. You will have 3 columns in total. LocationName, MonthYear, Value.
Thank you! It worked perfectly. I really appreciate it!
!modthanks
You have awarded 1 point to _T0MA.
^(I am a bot - please contact the mods with any questions)
I'm an entry level android developer, and I've took up a project to create a bar chart from scratch.
How should I go about doing it? A brief roadmap would really be helpful, because I'm mostly blank right now.
PS - I think most probably I'll be working with custom drawing classes like Canvas/Paint, so I've already started learning them.
Creating custom views like a chart is not what you should start learning with. To be honest, most of the time we're using libraries that provide ui components. We just customize things and rarely write everything from scratch. You should first focus on other things like design patterns, core libraries, async code, ui components and Android API in general. Look at this library https://github.com/PhilJay/MPAndroidChart it should be pretty good. Of course if creating views from scratch is your goal then ok, I'm just talking about everyday developer job.
Yeah definitely agreed.
But creating a bar chart from scratch is one of my goals right now.
Wrong sub. Try /r/learnprogramming for help with algorithms for things like that.
Check out the tutorial video: https://youtu.be/hy4IID--Ue0
Continuing to create a graph in Unity we're going to display our graph as a Bar Chart.
If you have any questions post them in the comments and I'll do my best to answer them.
Cheers!
Check out the tutorial video: https://youtu.be/QmU57Ka9H0E
Continuing the series let's create an Interface so we can later update our Graph with ease.
If you have any questions post them in the comments and I'll do my best to answer them.
Cheers!
Hello everyone I am trying to be more intentional with my finances and I’m working on a spreadsheet.
I have looked at YouTube and googled how to and I can’t seem to find what I’m looking for.
I created a table where I’m putting all my transactions and made a drop down menu with different categories.
Basically what I’m trying to do is make a bar graph that has the total, but every time I add a transaction for that category I want the bar graph to pick it up and subtract that amount.
For example: Bar graph of my wife’s “fun” money at $500. She gets her nails done for $80 and inputs that amount on the table and uses the category “personal” from drop menu. Then bam the bar graph drops from $500 to $420.
Would like to do the same thing with like a pie chart and track spending in other categories as well.
Is that possible? How do I do it? Please help.
Have you tried the inbuilt home budget template? It might be easier to start with that and modify it to suit. At least all the formulas are already there.
No I haven’t. I decided to go blank and add what I want to it. Might take a look.
If you are a noob, I would highly suggest going with the provided template or look for other's templates online. I made a cool one here, but it's a bit more than what you are asking for, but it may give you an idea of what you want to build your finance planner up to.
Not sure if this will help as I can’t see your actual setup, but it sounds like you might need to make another table that has the live totals for each category. Then you can draft the bar graph from that table. Formulas are largely universal across numbers, excel, google sheets etc. So you can find a video on how to do this in excel and then translate it across to numbers easily.
Wanted a tool where I could paste raw Label,Value
data and instantly get a beautiful, downloadable chart (bar or pie) with theming, no setup, no libraries to install.
So I typed something like this into blackbox-
> “Make a chart generator in one HTML file using Chart.js CDN. Paste Label,Value data in a textarea, choose between bar or pie chart, select a theme, and render the chart with a title. Include a PNG download button. All in one file.”
What it returned… just worked.
You can paste in your data like:
Electricity Usage,5800 Transport (Fuel),3200 Business Travel (Air),1400 Packaging,1100 Waste Management,700 Heating/Cooling,2600 Supply Chain Logistics,3100 Employee Commuting,900
Pick Bar or Pie
Choose from 5 color themes
Add custom title
Download chart as PNG
No npm, no build process, just HTML + Chart.js CDN
I've deployed it here: https://yotools.free.nf/chart-generator.html
This is part of a series I’m doing: “Useful tools Blackbox can code in one go.” Already made a JSON viewer, word definer, markdown previewer and many more (many of them can be found in the above website) all in one file. More coming.
What did you build? and what should I build next?
this looks great
Thankyou for posting in r/BlackboxAI_!
Please remember to follow all subreddit rules. Here are some key reminders:
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
Woah. This is cool!
This is awesome! Great work!
Nice work, works great.
I recently started using R and I'm finding it difficult to create a bar chart that has several bars in a row.
As an example, I created this table with random data, but imagine that for the month of January there would be 4 bars each representing ABCD, and so on. How do I do this in ggplot by importing data from Excel?
df |> tidyr::pivot_longer(A:D) |> ggplot(aes(meses, value, fill = name)) + geom_col(position = “dodge”)
Yes, just ask ChatGPT and describe your dataframe as part of the prompt.
What have you tried? Please share your code.
If you’re using ggplot, you need to get comfortable with the idea of “tidy data”. Take a look through R for Data Science (https://r4ds.hadley.nz). It should have everything you need. You’ll need to use pivot_longer with that table, so keep an eye out for that section.
For example my dataset has a column for Category and a column for Subcategory. I would like the bar chart to display the subcategories AND the category they belong to on the axis of one chart.
The way i have gotten around this in the past is is by creating a secondary disconnected table that combines the category and subcategories in one column. But then if i want to replicate that with subcategory and the segments that fall within, i need to create yet another disconnected table.
Surely there is a better way to achieve this?
native bar/column charts can’t show a parent total as just another bar out-of-the-box. you need a tiny semantic trick: build a reusable “axis” table that contains all subcats plus a synthetic “Total” member per category, and a measure that knows when to aggregate the whole parent. no more one-off disconnected tables per view - make one generic axis.
I use disconnected tables regularly. they're extremely low-weight in the model and have a lot of flexibility. What do you mean by an "axis" table instead?
yeah it is a disconnected table - just not one-off per chart. think of it as a reusable axis table: holds all subcats plus a synthetic “Total” row per parent, with a flag. your measure uses treatas + that flag to know whether to pull a single subcat or roll up the whole parent. way cleaner than spawning a helper table every time
Is this not the same as what i mentioned in my original post? Do you mind expanding? Thank you
basically same principle, yep. the twist is: instead of building a tiny helper table for each visual, you build one generic axis table once, and re-use it across visuals. less clutter in the model, easier maintenance.
After your question has been solved /u/inslipid531, please reply to the helpful user's comment with the phrase "Solution verified".
This will not only award a point to the contributor for their assistance but also update the post's flair to "Solved".
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
how to create a bar chart
Creating a Bar Chart: Key Steps
Choose Your Data:
Select a Tool:
Input Your Data:
Insert the Bar Chart:
import matplotlib.pyplot as plt
categories = ['Category 1', 'Category 2', 'Category 3']
values = [10, 20, 15]
plt.bar(categories, values)
plt.xlabel('Categories')
plt.ylabel('Values')
plt.title('Bar Chart Example')
plt.show()
Customize Your Chart:
Review and Save:
Recommendation: If you're new to data visualization, starting with Excel or Google Sheets is user-friendly and effective for basic bar charts. For more complex visualizations, consider learning Python libraries like Matplotlib or Seaborn.
Get more comprehensive results summarized by our most cutting edge AI model. Plus deep Youtube search.