Home forums Using CanvasJS Multi Series Line Graphs Reply To: Multi Series Line Graphs

#4554

Sunil Urs
Keymaster

Jim,

In order to show two line charts, you need to add two separate dataSeries – one for each line. You can just modify the same dataPoints array. So the code would go something like this

`data: [
{
type: “line”,
dataPoints : dps1
},
{
type: “line”,//or column, area, etc
dataPoints : dps2
}
]
`

Follow the link to learn more about Multi Series Charts & Combination Charts