Simple Bar Chart (bar_chart)
Create a simple bar chart showing month wise temperature. Visualize data with ease.
Simple Bar Chart
Purpose
The Simple Bar Chart function in this web app allows users to create a visual representation of data in the form of a bar chart. This helps users to easily compare different values and trends.
Use Cases
- Visualizing monthly sales data
- Comparing temperature changes over different months
- Analyzing student grades for each subject
How to Use
- Enter the names of the categories or months in the Category Names field.
- Enter the values corresponding to each category in the Values field.
- Optionally, enter a label for the data in the Data Label field.
- Enter a title for the chart in the Chart Title field.
- Choose whether to display the chart vertically or horizontally by selecting the appropriate option.
Input Values
- Category Names: Names of the categories or months (default unit is inch).
- Values: Corresponding values for each category (default unit is inch).
- Data Label: Label for the data being represented.
- Chart Title: Title for the chart.
Output Values
- Chart: Visual representation of the data in the form of a bar chart.
Any other Instruction
- Make sure to enter the data accurately to ensure the chart displays the correct information.
Code Analysis
- Convert the category names and values to strings and floats respectively.
- Create a bar chart using the provided data.
- Return the chart for display.
Technical Parameters
names, values, label, title, vertical
Return Values
chart
Example Expressions
You can use the following expressions to directly evaluate in a non-interactive manner using eval():
bar_chart(names='Jan, Feb, Mar', values='10, 15, 20', label='Sales', title='Monthly Sales', vertical=False)
bar_chart(names='Mon, Tue, Wed', values='5, 10, 15', label='Temperature', title='Weekly Temperature', vertical=True)
Click on Help icon to open the help page on a separate window.