Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var dataset = [];
- for (var index = 0; index < yAxis.length; ++index)
- {
- dataset.push(
- {
- label: yAxisName[index],
- fill: false,
- lineTension: 0.1,
- backgroundColor: "rgba(255,192,192,0.4)",
- borderColor: "rgba(75,192,192,1)",
- borderCapStyle: 'butt',
- borderDash: [],
- borderDashOffset: 0.0,
- borderJoinStyle: 'miter',
- pointBorderColor: "rgba(75,192,192,1)",
- pointBackgroundColor: "#fff",
- pointBorderWidth: 1,
- pointHoverRadius: 5,
- pointHoverBackgroundColor: "rgba(75,192,192,1)",
- pointHoverBorderColor: "rgba(220,220,220,1)",
- pointHoverBorderWidth: 2,
- pointRadius: 5,
- pointHitRadius: 10,
- data: yAxis[index]
- }
- );
- }
- var data = {
- labels: xAxis,
- datasets: dataset
- };
- var myFirstChart = new Chart(chrt).Line(data);
Add Comment
Please, Sign In to add comment