Changing color of pie chart dynamically
Atar Singh
Member
Hi,
I do have a pie chart,To provide flexibility to user.Below operation needs to be performed by end user.
1. Changing colors of existing pie chart (attached have 8 pieces of dynamic data retreived from database)
2. User select a slice/piece from chart and selects colors(static/hard coded) from a dropdown for all or some slices and choose a specific color for each slice.
3.Legends color will also changed based on user color selection.
Question is:
1. How to map any slice of pie chart to any color combination for more than one color available, I mean 8 slices and 8 color combination?
2. Should i use checkbox for color combination or dropdown?
3. Should i use drop down or checkbox for pie chart slices ?
Or do you have any other idea.Your help is highly appreciated.
Thanks,
Atar Singh
I do have a pie chart,To provide flexibility to user.Below operation needs to be performed by end user.
1. Changing colors of existing pie chart (attached have 8 pieces of dynamic data retreived from database)
2. User select a slice/piece from chart and selects colors(static/hard coded) from a dropdown for all or some slices and choose a specific color for each slice.
3.Legends color will also changed based on user color selection.
Question is:
1. How to map any slice of pie chart to any color combination for more than one color available, I mean 8 slices and 8 color combination?
2. Should i use checkbox for color combination or dropdown?
3. Should i use drop down or checkbox for pie chart slices ?
Or do you have any other idea.Your help is highly appreciated.
Thanks,
Atar Singh
0
Comments
-
Is it always going to be the same 8 fields? If so, you could add a parameter for each slice and let them choose the colors for each that way. Then you'd just have to change the colors in your chart script.Warning No formatter is installed for the format ipb0
-
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="78265" data-time="1307642908" data-date="09 June 2011 - 11:08 AM"><p>
Is it always going to be the same 8 fields? If so, you could add a parameter for each slice and let them choose the colors for each that way. Then you'd just have to change the colors in your chart script.<br /></p></blockquote>
<br />
<br />
Thanks for your reply mwilliams,<br />
<br />
Actually, It'll not be only 8 fields. Rather, The pie chart will be created dynamically.<br />
And there will be N number of fields in that pie chart.0 -
I could be wrong, but the best way to do this might be to create 2 reports or a single report with 2 parts. Either the first report or first section of the single report would have to have a table with the query you'll be using. You'll group the table by the field that's going to be in the chart and you'll add a HTML dropdown with your listing of possible colors in it. Then you'll have to have a HTML button and script that gathers the selected or typed colors from the different fields and passes them through a report parameter to the second report or to the same report for use in the second section. I've not done anything like this, so this is just a guess as to the best way.Warning No formatter is installed for the format ipb0
-
I'm finding its difficult to display color in PIE chart or Bar chart dynamically and need your help.
For eg:
Class A: 10
Class B: 20
"Class A" PIE area should display in GREEN color only
"Class B" PIE area should display in ORANGE color only
The above requirement I can accomplish by manually selecting color pattern, but there are few draw backs as below:-
1) If in the color pattern I selected first color as Green because in the display order "Class A" is first, and if "Class A" value is 0 and "Class B" value is 15 then for "Class B" complete PIE chart will be displayed in GREEN color instead of ORGANGE color.
- Can we have control on Colors to display in different PIE area's?
Through code in Birt Report, how I can have dynamically control on PIE chart colors to display?
For "Class A" PIE area to display only in Green color and "Class B" PIE area to be displayed only in ORANGE color.
Thanks,
Sudhakar0 -
Would this help?<br />
<a class='bbc_url' href='http://www.martinhammer.com/blog/index.php/2010/01/setting-birt-chart-series-palette-dynamically/'>Setting BIRT chart series palette dynamically</a>0 -
<blockquote class='ipsBlockquote' data-author="'mhammer'" data-cid="81596" data-time="1313566671" data-date="17 August 2011 - 12:37 AM"><p>
Would this help?<br />
<a class='bbc_url' href='http://www.martinhammer.com/blog/index.php/2010/01/setting-birt-chart-series-palette-dynamically/'>Setting BIRT chart series palette dynamically</a><br /></p></blockquote>
<br />
<br />
it must work by Setting BIRT chart series palette manually also.<br />
I mean if you have set green/orange/pink colors in sequence. the same order will be shown in pie chart generated. If you want, you can add some condition also for a specific color in pie chart.0 -
Thank you, this what I required.<br />
<br />
<blockquote class='ipsBlockquote' data-author="'Atar Singh'" data-cid="81597" data-time="1313568441" data-date="17 August 2011 - 01:07 AM"><p>
it must work by Setting BIRT chart series palette manually also.<br />
I mean if you have set green/orange/pink colors in sequence. the same order will be shown in pie chart generated. If you want, you can add some condition also for a specific color in pie chart.<br /></p></blockquote>0
Categories
- All Categories
- 122 Developer Announcements
- 53 Articles
- 151 General Questions
- 147 Thrust Services
- 56 OpenText Hackathon
- 35 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 917 Cloud Fax and Notifications
- 84 Digital Asset Management
- 9.4K Documentum
- 31 eDOCS
- 181 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 8 XM Fax
- Follow Categories