Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1125
Set opacity on an individual win chart LineChart line
posted

Hi,

Is it possible to set the opacity/transparency of an individual line on a linechart or composite linechart?

I've tried the following, but it just gives a really light grey line, no matter what settings I use:

Dim series2 As New NumericTimeSeries()
series2.Data.ValueColumn = "Average"
series2.Data.TimeValueColumn = "Date"
series2.Data.DataSource = table
series2.DataBind()
series2.PEs.Add(New PaintElement(Color.Black, Color.Black, GradientStyle.Horizontal, 254, GradientStyle.Horizontal, PaintElementType.Gradient))

Thanks, Tom

  • 23930
    Verified Answer
    Offline posted

    Hi Tom,

    I am just checking about the progress of this issue. Let me know if you need my further assistance on this issue.

    Thank you for using Infragistics Components.

  • 23930
    Verified Answer
    Offline posted

    Hi Tom,

    Thank you for contacting Infragistics Developer Support.

    What you could do in order to achieve this functionality is to use the ChartDrawItem event and check if the primitive that is being drawn is a polyline and to which series it belongs. Than you can set the FillOpacity and color of their PEs based on their series.

    I have attached a sample which demonstrates this suggestion.

    Please let me know if you have any additional questions.

    WC_SetOpacityForEachSeries.zip