score:0
you can draw it before the line chart with drawtime: 'beforedatasetsdraw'
score:0
managed to do this with following code:
const plugins = [
{
beforedraw: (chartinstance, easing) => {
const ctx = chartinstance.chart.ctx;
ctx.fillstyle = "lightgreen";
ctx.fillrect(30, 200, 955, 50);
},
},
];
//...
<line
data={data}
plugins={plugins}
/>
Source: stackoverflow.com
Related Query
- Add rectangle fill to line chart
- How to add gradient css to Nivo Rocks Line chart area?
- Add a vertical line in a react-vis chart where mousepointer is hovered
- How can I add a vertical line on the X axis in a Google Chart' chart (Line type)?
- Gradient fill for react-highcharts' line chart
- Chart Js Line chart with fill on click with full information of its legend text
- Add new line in es6 inside a doughnut chart
- How to add inline legends to line / area mixed chart in highchart
- Add space between two elements on the same line
- How to remove points from line chart in ReCharts?
- Can I add a GeoJSON line like they do in the (mapbox-gl-js documentation) using react-map-gl?
- Recharts - add commas to number on tooltip on bar chart
- Add text inside doughnut chart from chart js-2 in react
- Add text inside the Doughnut chart of the React-Chartjs-2 box to react
- How to create line chart with JSON data using D3
- Victory Charts - tooltip on line chart
- Can not pass date to nivo line chart
- Split elements in array and add line break, then join - Javascript
- How to add custom color theme in nivo chart settings
- Add text inside leaflet rectangle
- react-chartjs-2 vertical line when hovering over chart
- Yup schema: How to add new line in error message
- Recharts line chart cut off top line
- css grid how to add line between rows?
- D3 line chart component not being updated inside useEffect in React
- Time Series Line chart js in react not working
- how can i add Line break in JSON?
- ChartJS (React) Line Chart - How to show single tooltip with data and labels from 3 (multiple) dataset?
- Add Bullets to Each New Line within a textarea
- Apply color only to lower part of Chart.js line chart
More Query from same tag
- Can't read latest state variable in setInterval (Hooks)
- How to deploy a React App for each PR in a different URL on Azure?
- Replicating color box in VScode when writing CSS
- Inject custom data attribute to REACT `props.children`
- Create a dynamic onClick function in React
- ReactJs + Electron - Socket connection only working after reload
- Append react component on click
- How to render a HTML comment in React?
- What's the difference between alignItems and alignSelf in React Native?
- How to dynamically update a search term with React/Redux/Axios?
- How to deal with xml file in next js?
- how to set values for variables inside setState if those variables are null
- How to put React in production mode?
- React Testing Library - Avoid getBy?
- What is causing the React not a function error?
- ReactDOM.render() vs export default class?
- How to save axios response to a variable and update the state in react js?
- Can't get json from unsplash api
- How to send event.target through to mock a function using FormData
- how to retrieve text from google drive documents
- Advice when working with long running post requests from a React app to NodeJS Backend
- ReactJS get values of dynamically created Radio Buttons and pass them into state (usestate)
- Loading Spinner React
- Playing audio file from Firebase Storage works locally, but not on deployed appliation
- Using .map() with useEffect and Api
- Button Id issue
- Fetch Error "Promise returned from fetchData is ignored"
- Is it possible to disinguish between server and client in babelrc config (meteor)?
- how do I display different data by clicking two buttons in react?
- Simple selector and nested selector in JSS