raydenxxx Posted June 11, 2008 Report Share Posted June 11, 2008 Hello, is it possible to apply differents colors for the background?I'd like to do a stratification like this: I tried with AxisSections but it doesn't work because they are only on one axis (one "from" and one "to").I don' t want to use a picture in the background because it would be parametrable. I'm open to any suggestion Thank you,Raydenxxx (France) Quote Link to comment Share on other sites More sharing options...
raydenxxx Posted July 7, 2008 Author Report Share Posted July 7, 2008 No other possibilities except using a background image??? :$ Quote Link to comment Share on other sites More sharing options...
Frank Posted July 7, 2008 Report Share Posted July 7, 2008 The best option I see is to create annotation rectangles (using the annotation extension) for each of the colored rectangular areas.Annotation objects can be attach to logical X and Y axis coordinates so that they can be moved and resize as a response to changes in the scale (e.g. size of the chart changes). There is documentation for creating annotation objects in the programmer's guide. That should get you there. If the specific colors are not important but all you care about is that they are different from each other, you can achieve this by creating translucent axis sections in both the X-and Y-Axis. The intersection of two or more translucent colors will produce a different color. Quote Link to comment Share on other sites More sharing options...
raydenxxx Posted July 8, 2008 Author Report Share Posted July 8, 2008 Are not the annotation in the first plan??? I think it will cover the chart... I'll test this when I can and tell you the result... it's a good idea. Thank you Quote Link to comment Share on other sites More sharing options...
Frank Posted July 8, 2008 Report Share Posted July 8, 2008 Annotations can be placed behind the chart: annotationObject.PaintBefore = true; The annotation option requires a little more code, that's why I suggested the axis sections if the colors didn't have to be specific. Quote Link to comment Share on other sites More sharing options...
raydenxxx Posted July 9, 2008 Author Report Share Posted July 9, 2008 Colors are specifics, exactly like the picture, I can't with AxisSection for the reason I explain. I'll test with annotation (actually I'm on something else, an other evol) Thank you Quote Link to comment Share on other sites More sharing options...
VekiPeki Posted July 9, 2008 Report Share Posted July 9, 2008 Have you considered stacked bars? If Volume property is set to 100, and Stacked is set to Stacked100, they should fill the whole canvas. Quote Link to comment Share on other sites More sharing options...
raydenxxx Posted July 9, 2008 Author Report Share Posted July 9, 2008 It's a possibility, very dirty I think... lol I'll try annotation (cleaner) and I'll see, but thank you for the idea Quote Link to comment Share on other sites More sharing options...
VekiPeki Posted July 9, 2008 Report Share Posted July 9, 2008 It just seemed easier -- you could avoid dealing with annototion x/y coodinates or handling the resize events. You also get mouse hover effects and tool tips without extra programming, and don't need to care about any painting or positioning - just pass the data and forget about it. Quote Link to comment Share on other sites More sharing options...
raydenxxx Posted July 10, 2008 Author Report Share Posted July 10, 2008 Works great with annotations! Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.