简体   繁体   中英

how to set pie chart colors in wijmo pie chart using javascript and webservice

I need to set the pie chart slices in my wijpiechart to the color retrieved from the database for that row. Using webservice to retrieve this info and javascript to render the wijpiechart. Any help would be very much appreciated. Thanks, Hindy

You can set the colors coming from the database in the series of the pie chart by setting 'seriesStyles' option. You may refer to the following demo sample that uses this option: http://wijmo.com/demo/explore/?widget=PieChart&sample=Colors%20Formatting

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM