I have got this code using react-chartjs. It displays the graph but the options get ignored everytime no matter what I put there. Is there another way you are supposed to add the options into the component?
import React, { PropTypes } from 'react'
var LineChart = require("react-chartjs").Line;
var data = {
labels: ['M', 'T', 'W', 'T', 'F', 'S', 'S'],
datasets: [{
label: 'apples',
data: [12, 19, 3, 17, 6, 3, 7]
}]
};
var options = {
lineTension : 0,
fill : false,
showLines : false
};
const Graph = () => (
<span>
<h1>Heart Graph</h1>
<LineChart data={data} options={options} width="600" height="250"/>
</span>
)
export default Graph