Fixed colors for Pie charts

35 views
Skip to first unread message

Chaminda Hewagodage

unread,
Jul 18, 2016, 1:54:12 AM7/18/16
to Google Visualization API
Hi, I've used 3D pie charts in ASP.NET with SQL database
I want to know set fixed colors for the different pie charts

Example : chart 1 shows Item condition for factory A, such as GOOD (green colored), UNDER REPAIR (yellow colored) & SCRAP (red colored)

chart 2 shows Item Condition for factory B, but this chart only show GOOD & SCRAP (no value for UNDER REPAIR)
this one colored as GOOD-green & SCRAP-yellow
but I want to show SCRAP in red colored

Please give me a solution....
Message has been deleted
Message has been deleted

Max D

unread,
Jul 20, 2016, 3:53:20 AM7/20/16
to Google Visualization API
Hello Friends,

Please help me with the next situation:
I have the following structure of the tree:

['Global',    null,                 0,                            
   0],
['Europe',    'Global',             1,                               0],
['UK',        'Europe',             1,                              1],
['London',        'UK',             1,                              0],
['Edinburg',        'UK',             1,                              0],
['Tower',        'London',             1,                              1],
['Buckingham',        'London',             1,                              0]

and the next config:
  var options = {
    highlightOnMouseOver: false,
    maxDepth: 2,
    maxPostDepth: 2,
    minColor: 'red',
    midColor: 'green',
    maxColor: 'green',
    headerHeight: 40,
    showScale: false,
    fontColor: 'black',
    fontSize: '24',
    useWeightedAverageForAggregation: true,
    hintOpacity: 0.5
  };

(screenshots attached)


I have a question: Is the any way to change a color of UK node to red on the Global level or to change a color of London node on the UK level without changing a color of its child nodes?

If be simple, I want to know a way to change a colors of parent nodes only on the top-level.
WantToSee.png
UK.png
Europe.png
Reply all
Reply to author
Forward
0 new messages