Class CjLineChart

java.lang.Object
com.oorian.html.Element<CjChart>

public class CjLineChart extends CjChart
Line chart component for Chart.js.

Line charts are used to display information as a series of data points connected by straight line segments. They are commonly used to visualize trends over time.

Basic Usage:


 CjLineChart chart = new CjLineChart()
     .setLabels("Jan", "Feb", "Mar", "Apr", "May")
     .addDataset(new CjDataset("Sales")
         .setData(10, 20, 15, 25, 30)
         .setBorderColor("rgb(75, 192, 192)")
         .setTension(0.4))
     .setTitle("Monthly Sales");
 
See Also:
  • Constructor Details

    • CjLineChart

      public CjLineChart()
      Creates a new line chart.