Profile Picture

Gradient anchor - Bar Chart / Horizontal or Vertical

Posted By Bill Elliott 13 Years Ago
Author
Message
Bill Elliott
questionmark Posted 13 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 5, Visits: 1

Hello! 

On a 'dashboard' page, I have three bar charts.  One of them (the Rack Space Utilization) has the bars rotated horizontally, but the other two do not (see attached image; Charts_Gradient.JPG).  In code-behind, I am rotating this chart (chart.SetPredefinedChartStyle(PredefinedChartStyle.HorizontalLeft) 'flips to chart so the bars are horizontal).  We have also applied the GlitterLeft rendering to them all, too.

Observation

The 'gradient' on the RackSpace chart appears to darker than the other two bar charts. They end up appearing inconsistent. To me, it appears as though the Horizontal chart has the gradient anchored in one corner, and the Vertical charts have theirs anchored in another one.


Questions

Can I define 'where' the gradient is anchored?

Can I just apply a white background to the chart, but still use the GlitterLeft setting (in the "chart.LightModel.SetPredefinedLightModel")?

 

Additional Info

I have built an 'admin' page for our site's administrators so that they can make some fundamental 'styling' settings to all charts.  Two additional images have been attached to help depict this gradient trouble.

Charts_Gradient_Horizontal.JPG - depicts the 'sample chart' in its horizontal layout.

Charts_Gradient_Vertical.JPG - depicts the 'sample chart' in its vertical layout.

 

I can send some code snippets, if this will help.  I am developing with VB.NET.



Attachments
Charts_Gradient.JPG (99 views, 104.00 KB)
Charts_Gradient_Horizontal.JPG (98 views, 39.00 KB)
Charts_Gradient_Vertical.JPG (109 views, 39.00 KB)
Nevron Support
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Yesterday @ 4:29 AM
Posts: 3,054, Visits: 4,000
Hello Bill,

The "Glitter Left" light scheme uses a point light source which illuminates the chart walls with darker and lighter corners (like a gradient).

If you set a directional light source the wall color will be the same in all corners. There is no predefined light scheme that uses directional light sources, so you have to setup the light source manually.

If you want to preserve the gradient-like effect, but want it to look the same for horizontal and vertical charts - in this case you'll have to set the light source positions manually (at least for the horizontal chart).

Another option is to use a light source with coordinates defined in camera space (for example "Soft Camera Light" scheme). In this case it doesn't matter whether the chart is rotated (horizontal) or not.


Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic