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 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', &...
React Charts 2 https://github.com/gor181/react-chartjs-2  is referencing below  Chart JS http://www.chartjs.org/docs/#getting-started  The docs in react-chartjs-2 references chart.js docs and they're all wrong. I can't figure out how to confi...
I am using a C3 Chart with react. And the chart is created without problem. But I need the data from the bars [1, 5, 1, 5, 2, 2, 1, 3] to be shown next to a %.  Example 1%, 5%, 1%, 2%...    This is my code   const failureTopBar = {                 da...
Is it possible to render a chart with "inline" labels between horizontal bars in ChartJS?...
I want to hide gridlines of react-chartjs-2 line chart. I have tried with the below code. But not working.  scales: {         xAxes: [{           gridLines: {             display: false,             drawOnChartArea: false,             drawTicks: fals...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.