Hi, i have on X axis, some date with weekday (1-mon, 6-sat, 7-sun, 8-mon, 9-wen etc)
i have only one serie of datas but i want set the same color for the same weekday.
i try to use colormodel customlinear but i think that its for different series, i try to set this in the FillSceneGraph event, but i fail.
can you help me to do it?
tks for help
i try to do an example but its a bit more slow to refresh the form and the chart that the fill_graph.
tks for the tips
Hello Gothrek,
Thank you for following up. In addition you may want to explore the ChartDrawItem event instead of for modifying the chart primitives. If you'd like us to investigate the slowness your experience please upload a sample application or modify the one I provided so we can investigate this further.
Let me know if you have any questions regarding this matter.
i try override, a bit more slow then this in the fill_scenegraph:
For Each pr As Infragistics.UltraChart.Core.Primitives.Primitive In e.SceneGraph If pr.Value = tabellaGrafico.Rows(contatoreColonne).Item("Dato") Then Select Case Microsoft.VisualBasic.Right(tabellaGrafico.Rows(contatoreColonne).Item("Giorno"), 2) Case "lu" pr.PE.Stroke = colori(0) pr.PE.Fill = colori(0) Case "ma" pr.PE.Stroke = colori(1) pr.PE.Fill = colori(1) Case "me" pr.PE.Stroke = colori(2) pr.PE.Fill = colori(2) Case "gi" pr.PE.Stroke = colori(3) pr.PE.Fill = colori(3) Case "ve" pr.PE.Stroke = colori(4) pr.PE.Fill = colori(4) Case "sa" pr.PE.Stroke = colori(5) pr.PE.Fill = colori(5) End Select pr.PE.FillGradientStyle = Infragistics.UltraChart.Shared.Styles.GradientStyle.None pr.PE.FillOpacity = 200 contatoreColonne += 1 End If Next
i use an if to check when the primitive.value its the sale column.value and change it
Hello,
You can apply an override to specific columns in your series by creating an instance of an UltraChart.Resources.Appearance.Override object. For more details please visit "Apply an Override to a Chart"
I attached a sample demonstrating this. Please let me know if you hae any questions regarding this matter.