Sha256: 945a5a4550716b607f6e16b5e47bd839600a1735370af329c34a17635fbc31e9
Contents?: true
Size: 1008 Bytes
Versions: 12
Compression:
Stored size: 1008 Bytes
Contents
Rev.registerExample('Charts', class ChartsExample extends React.Component { get data() { return { labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], datasets: [ { label: 'My First dataset', fillColor: 'rgba(220,220,220,0.5)', strokeColor: 'rgba(220,220,220,0.8)', highlightFill: 'rgba(220,220,220,0.75)', highlightStroke: 'rgba(220,220,220,1)', data: [65, 59, 80, 81, 56, 55, 40], }, { label: 'My Second dataset', fillColor: 'rgba(151,187,205,0.5)', strokeColor: 'rgba(151,187,205,0.8)', highlightFill: 'rgba(151,187,205,0.75)', highlightStroke: 'rgba(151,187,205,1)', data: [28, 48, 40, 19, 86, 27, 90], }, ], } } render() { const {ChartBuilder} = Rev.Components return ( <div> <ChartBuilder type="Line" data={this.data} height={300} width={300} /> </div> ) } })
Version data entries
12 entries across 12 versions & 1 rubygems