There are two values like this:
var company1 = [
[new Date(2004, 12, 1), 1000],
[new Date(2004, 12, 3), 500],
[new Date(2004, 12, 7), 950]
[new Date(2004, 12, 8), 1000]];
var company2 = [
[new Date(2004, 12, 2), 800],
[new Date(2004, 12, 4), 600],
[new Date(2004, 12, 5), 300]
[new Date(2004, 12, 8), 500]];
And I want to draw a chart like this.
To draw a line chart like this, do I need to create an arrays like this?
['2004/12/1', 1000, null],
['2004/12/2', 750, 800],
['2004/12/3', 500, 700],
['2004/12/4', 650, 600],
['2004/12/5', 800, 300],
['2004/12/7', 950, 400],
['2004/12/8', 1000, 500]
or is there a easier way to create a chart with different x-axis values?
This is the jsfiddle snippet for the chart. https://jsfiddle.net/fe26/u3n8qsay/