var chart = new ej.charts.Chart({
//Initializing Primary X Axis
primaryXAxis: {
minimum: 0,
maximum: 3000,
interval: 500,
minorTicksPerInterval: 4,
minorGridLines: { width: 1, }
},
//Initializing Primary Y Axis
primaryYAxis: {
minimum: 0,
maximum: 12,
interval: 2,
majorGridLines: {},
minorTicksPerInterval: 4,
minorGridLines: { width: 1, }
},
//Initializing Scondary Y Axis
axes: [{
rowIndex: 0,
name: 'yAxis1',
opposedPosition: true,
minimum: 0,
maximum: 3,
interval: 0.5,
}],
//Initializing Chart Series
series: [
{
type: 'Spline',
dataSource: [
{ x: 2619, y: 2.28 },
/ / Add more points
], yAxisName: 'yAxis1',
xName: 'x', width: 2,
marker: {
visible: true,
width: 10,
height: 10,
shape: 'Cross',
fill: 'black'
},
yName: 'y',
},
// Add more series
],
});
chart.appendTo('#line-container'); |