Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render: function render() {
return _react2.default.createElement(
'div',
null,
_react2.default.createElement(
'h2',
null,
'Line Example'
),
_react2.default.createElement(_reactChartjs.Line, { data: data })
);
}
});
'use strict';
/**
* Defines a chart for displaying workflow performance.
*/
const React = require('react');
const LineChart = require('react-chartjs-2').Line;
const { Modal, ModalClickable, ModalContent } = require('./modal');
/**
* Returns the chart options to use for a normal sized chart on a page.
*/
const regularChartOptions = title => ({
responsive: true,
maintainAspectRatio: false,
title: {
display: true,
text: title
},
scales: {
xAxes: [{
type: 'time',
time: {