Simple Line Chart (line_chart)
Create a simple line chart to visualize data with x and y values. Customize labels and title for easy interpretation.
Simple Line Chart
Purpose
The Simple Line Chart function in this web app allows users to input x and y values to create a basic line chart for visualization.
Use Cases
- Visualizing simple data trends
- Comparing two sets of data points
How to Use
- Enter the x values and y values in the respective input fields.
- Provide labels for the x and y axes.
- Optionally, add a title for the chart.
- Click on the "Generate Chart" button to see the line chart.
Input Values
- X Values: Enter the x-axis values separated by commas.
- Default unit is inch.
- Y Values: Enter the corresponding y-axis values separated by commas.
- Default unit is inch.
- X Label: Label for the x-axis.
- Y Label: Label for the y-axis.
- Title: Title for the chart.
Output Values
- Chart: The generated line chart for the provided x and y values.
Any other Instruction
- Ensure that the x and y values are in the correct order and correspond to each other accurately.
Code Analysis
The function takes the input x and y values, along with axis labels and a chart title. It then plots a line chart using the provided data points.
Technical Parameters
- x_values
- y_values
- x_label
- y_label
- title
Return Values
- chart
Example Expressions
You can use the following expressions to directly evaluate in a non-interactive manner using eva():
line_chart(x_values='1, 2, 3, 4, 5', y_values='10, 15, 20, 25, 30', x_label='Time', y_label='Value', title='Value over Time')
line_chart(x_values='100, 200, 300, 400, 500', y_values='50, 75, 100, 125, 150', x_label='Distance', y_label='Speed', title='Speed vs Distance')
Click on Help icon to open the help page on a separate window.