Hello,
how can I change the color line in a ColumnLineChart? I draw some Columns and add the colors as
ColorModel.CustomPalette = New Color() {Color.FromArgb(51, 135, 102), Color.FromArgb(0, 0, 128), Color.FromArgb(0, 0, 255), Color.FromArgb(255, 153, 128), Color.FromArgb(128, 128, 128), Color.FromArgb(200, 200, 200)}
My Problem is that the line gets always the 1. color from the CustomPalette. I would like to change the line color to black whithout using another Layer, but I can't find the way for that.
Thanks for any help!
Awesome! Thanks!
it would be something like this:For Each p As Primitive In e.SceneGraph If TypeOf p Is Polyline Then Dim polyline = CType(p, Polyline) 'do stuff End IfNext
How would you write this in vb? i'm not having any luck checking primitive against polyline.
Are you calling DataBind on your series after assigning DataSource and ValueColumn properties? You should be able to see the Points collection populated and count should be greater than zero after calling series.DataBind()
Got the dynamic data setting figured out... here's my code:
NumericSeries sLife = GetLifeSeries();
UltraChart1.CompositeChart.Series.Add(sLife);
UltraChart1.CompositeChart.ChartLayers[0].Series.Add(sLife);
NumericSeries sChanges = GetChangesSeries();
UltraChart1.CompositeChart.Series.Add(sChanges);
UltraChart1.CompositeChart.ChartLayers[1].Series.Add(sChanges);
Now, back to the margin setting for x axis... I'm ready to set it, but need to get number of data points in the column chart, using the series...
I tried:
// set the margin on the x-axis to make sure points line up with columns
UltraChart1.CompositeChart.ChartLayers[1].AxisX.Margin.Near.MarginType =
LocationType.Percentage;
UltraChart1.CompositeChart.ChartLayers[1].AxisX.Margin.Near.Value = marginPercent;
UltraChart1.CompositeChart.ChartLayers[1].AxisX.Margin.Far.MarginType =
UltraChart1.CompositeChart.ChartLayers[1].AxisX.Margin.Far.Value = marginPercent;
But, the series.Points.Count - is zero!!!
Using the debugger, I could not find what to use to find the number of columns from the series. Can you help?