D
David Powell
Belated thanks to Andy Pope for guidance on my problem, which was to
display two 'needles' on a circular chart - like a traditional
barometer - and to colour the sector appropriately.
This post is also to record the points I needed to understand, to
assist others.
1. 'Chart Type' belongs to a series, not the Chart. (This isn't
evident from the user interface, although I guess the pre-assigned
combination charts presented offer that promise.) So a pie chart and
an X-Y chart may be happily belong to the same chart object.
2. The axes of such a combination pie chart / X-Y chart are readily
aligned. E.g., if you assign the X-Y graph's axes' limits (both X and
Y) to (-1, +1), the centre will align with the pie graph's. You'd
hope so, I guess, but the hope is satisfied.
3. To draw a line which will align with the border of a pie sector,
use elementary circle trigonometry (x value related by cosine, y by
sine).
By convention, pie graphs start at '12 o'clock', whereas cartesian
angles increase anticlockwise from '3 o'clock', so subtract the
required angle from 90 degrees (or pi/2) before doing the trig and any
scaling.
4. Custom markers for the datapoints X-Y radial lines permit you to
add your own picture to plot around the circle.
Andy Pope's site would provide extra context.
(snip from Andy's early post 2003-06-01 09:16:19 PST)
David Powell.
display two 'needles' on a circular chart - like a traditional
barometer - and to colour the sector appropriately.
This post is also to record the points I needed to understand, to
assist others.
1. 'Chart Type' belongs to a series, not the Chart. (This isn't
evident from the user interface, although I guess the pre-assigned
combination charts presented offer that promise.) So a pie chart and
an X-Y chart may be happily belong to the same chart object.
2. The axes of such a combination pie chart / X-Y chart are readily
aligned. E.g., if you assign the X-Y graph's axes' limits (both X and
Y) to (-1, +1), the centre will align with the pie graph's. You'd
hope so, I guess, but the hope is satisfied.
3. To draw a line which will align with the border of a pie sector,
use elementary circle trigonometry (x value related by cosine, y by
sine).
By convention, pie graphs start at '12 o'clock', whereas cartesian
angles increase anticlockwise from '3 o'clock', so subtract the
required angle from 90 degrees (or pi/2) before doing the trig and any
scaling.
4. Custom markers for the datapoints X-Y radial lines permit you to
add your own picture to plot around the circle.
Andy Pope's site would provide extra context.
(snip from Andy's early post 2003-06-01 09:16:19 PST)
Have a look at my examples of pic chart variations
(http://www.andypope.info/charts/pies.htm)
and also the gauge example
(http://www.andypope.info/charts/gauge.htm)
You maybe able to combine these techniques to get your desired result.
David Powell.