Line chart with categories
Source code name: "line_chart.py"
Programming language: Python
Topic: Plots/2D
DMelt Version 1.4. Last modified: 09/04/1972. License: Pro
https://datamelt.org/code/cache/line_chart_1635.py
To run this script using the DMelt IDE, copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.


from jhplot  import *

c1 = HChart("Canvas")
c1.visible()

c1.setChartLine()
c1.setName("Line chart")
c1.valueLine(1.0, "First", "category1");
c1.valueLine(2.0, "First", "category2");
c1.valueLine(10.0, "First", "category3");
c1.valueLine(8.0, "First", "category3");

c1.valueLine(3.0, "Second", "category1");
c1.valueLine(2.8, "Second", "category2");
c1.valueLine(4.0, "Second", "category3");
c1.valueLine(1.0, "Second", "category3");
c1.update()
# c1.export("a.pdf")



You see the box below because you did not login.