JavaScript
var chart = new CanvasJS.Chart("chartContainer", {
axisY: {
maximum: 1000,
gridThickness: 0,
},
data: [{
type: "line",
dataPoints: [
{ x: 10, y: 710 },
{ x: 20, y: 550 },
{ x: 30, y: 500 },
{ x: 40, y: 650 },
{ x: 50, y: 950 },
{ x: 60, y: 680 },
{ x: 70, y: 280 },
{ x: 80, y: 340 },
{ x: 90, y: 140 }
]
},
{
type:"line",
color:"#b3db8f",
markerSize: 0,
toolTipContent: null,
highlightEnabled: false,
dataPoints:[
{x:20, y:0},
{x:20, y:1000}
]
},
{
type:"line",
color:"#b3db8f",
markerSize: 0,
toolTipContent: null,
highlightEnabled: false,
dataPoints:[
{x:22, y:0},
{x:22, y:900}
]
},
{
type:"line",
color:"#b3db8f",
markerSize: 0,
toolTipContent: null,
highlightEnabled: false,
dataPoints:[
{x:24, y:0},
{x:24, y:800}
]
},
{
type:"line",
color:"#b3db8f",
markerSize: 0,
toolTipContent: null,
highlightEnabled: false,
dataPoints:[
{x:26, y:0},
{x:26, y:700}
]
},
{
type: "scatter",
markerSize: 0,
toolTipContent: null,
highlightEnabled: false,
indexLabelFontColor: "#b3db8f",
indexLabel: "{x}, {y}",
dataPoints: [
{x:32, y:980, indexLabel: "\u25C0 Control or Experimental"},
{x:29, y:870, indexLabel: "\u25C0 Oligomycin"},
{x:28, y:770, indexLabel: "\u25C0 FCCP"},
{x:38, y:680, indexLabel: "\u25C0 Rotenone + Antimycin A"}
]
}
]
});
chart.render();