score:0
Accepted answer
quick solution i found : visit devexpress support forum for more details
code is
<div id="canvas-holder">
<div id="pie"></div>
</div>
<script>
var ds = [{ country: "on", area: 0 }];
var pie = $("#pie").dxpiechart({
size: { width: 500 },
//palette: "bright",
datasource: ds,
series: [{ argumentfield: "country", valuefield: "area" }],
title: "area of countries",
customizepoint: function (pointinfo) {
if (pointinfo.value <= 0) {
return {
color: "red"
}
}
return {
color: "green"
}
}
}).dxpiechart("instance");
var isval = 0;
setinterval(function () {
if (isval == 0)
isval = 1;
else
isval = 0;
ds[0].area = 1;
pie.option("datasource", ds);
}, 1000);
</script>
Source: stackoverflow.com
Related Query
- js devexpress PieChart Series color runtime
- Chart.js: How can a line series (out of many) change line color and thickness upon mouse hover?
- Chart.js - PieChart defined background color for specific dataset element
- How to generate color code dynamically by swapping 2 characters within a string using PHP
- Change background point color at runtime for angular ng2-charts / chartjs
- Chart.js change Color of a Point during runtime
- base chart slice color on series value?
- How to run Chart.js samples using source code
- Different color for each bar in a bar chart; ChartJS
- ChartJS Line Charts - remove color underneath lines
- Chart.js label color
- Chartjs change grid line color
- Chart area background color chartjs
- ChartJS - Different color per data point
- Chart.js - add gradient instead of solid color - implementing solution
- Change X and Y axis font color
- Change color of X and Y axis values in Chart.js
- How set color family to pie chart in chart.js
- how to plot multiple time series in chartjs where each time series has different times
- Can't change color line with chart.js
- Chart.js line chart set background color
- Chart.js Text color
- chartjs datalabels change font and color of text displaying inside pie chart
- Chart.js change color of Bar
- Chart.js Line, different fill color for negative point
- plot a bar chart.js time series
- Can I set different fill color based on a given threshold in Chart.js?
- Change point size and color on hover in chartjs
- Chart.js: hiding series by clicking on legend
- Chart.js bar chart : Grid color and hide label
More Query from same tag
- How to use forEach loop on my array to plot x and y variables on my chart (Chart.js)
- How to use legendCallback or similar when using Chart.js with TypeScript
- using react-chartjs-2 , How can I save my chart as png using a download button
- angular chartjs line chart default options
- Pagination for Chart.js line chart?
- How to plot an equation using ChartJS?
- How can I change the cursor on pie chart segment hover in ChartJS 3?
- Add Extra label in a pie chart
- Live update the charts.js graph on a web page using json data received from a remote server
- chartjs and making an onClick action for a specific element?
- How to pass data for stacked chart in vue-chartkick
- Chart.js: How to handle very large and very small values in radar chart?
- ChartJs Uncaught ReferenceError for labels value from ViewBag
- How to rewrite JavaScript currency formatting to abbreviate dollar amount
- [Vue warn]: You may have an infinite update loop in watcher with expression "chartData"
- Fully destroy charts on ngDestroy method from Angular 4
- AmCharts: Clustered bar chart with sub-categories
- Chart.js different doughnut thickness in a mixed chart
- Responsive Chart.js Doughnut Chart with minimum height
- Chart.js - doughnut show active segment tooltip (on click of external button)
- Can i use crosshairs with OHLC/candlestick charts using ChartJS
- How to set prop data for chart.js in React?
- Removing ChartJS 2 border and shadow from point style legend
- How to add panning to chart in chartjs?
- Complex Javascript variables containing the values of other assigned variables?
- Return 0 as data for months with no data
- Chart.js color is not getting changed
- How to change background color in ng2-charts
- Chartjs - Two Y-axis scale problems
- How to pass an array to chart.js data:[] while creating a chart in php