I am trying to make a doughnut chart with react and gatsbyjs. The chart works fine but I can not get it to use the full width of the div. It displays too small for the area reserved.  render (){     return (              <Doughnut...
I am creating a dashboard app that fetches data from an endpoint and uses the setState method to assign variables from the JSON returned by the endpoint to state variables. When I make a change to state, some components like 'react-svg-gauge'...
i want to add a text message inside my doughnut pie chart. To be more specific i want something like this:    I came across the same issue here in stack overflow by they use chart js in jquery and since i'm new to javascript i got confused. This...
I have a react component Data which includes several charts components; BarChart LineChart ...etc.  When Data component starts rendering, it takes a while till receiving the data required for each chart from APIs, then it starts to respond and render...
I call the update() function, but it does not work.  TypeError: line.update is not a function.  Why is update() not a function?  I have seen this example on http://jsfiddle.net/zpnx8ppb/26/ where the update function does work  Here is my code:  impor...
I've tried making a radar chart using react-chartjs (https://github.com/reactjs/react-chartjs). It renders, but there are no colors.     What am I missing? I pretty much copied a large chunk of the example at https://reactcommunity.org/react-char...
I am doing data visualizations with react, react-chartjs-2, and chart.js version 2.2.1. There is a possibly related answer to this question here (look for 17.06.16 update), but I'm not sure what Chart.pluginService.register is or whether it is co...
I am attempting to create a line chart where the color of the line (and the points) is dependant upon the value being plotted. For example if the value is above the following thresholds [0, 115, 125] then the color would be either ['green', &...
How to show data values or index labels in ChartJs (Latest Version) as in the below image:    I am using the ChartJs to display charts in my React Project. Everything is working fine, except this.  I found an answer in stackoverflow (https://stackove...
I'm currently using chart.js in my project and I have to say it's an amazing library. However I recently realised I also need a "treemap" which I was unable to find on their website. Has anyone managed to implement a treemap example u...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.