1. Steven Watkin
  2. PowerBuilder
  3. Tuesday, 27 June 2023 17:32 PM UTC

Hello,

I have a graph datawindow. Everything works fine except I am unable to set the Line style and it is set to Continuous! no matter how I call SetSeriesStyle().

Here are three lines of code. The first two lines work great. The third line does not set the Line style to Dot! as it is supposed to:

li_ret = dw_product_graph.SetSeriesStyle("gr_1",ls_product_desc, LineColor!, ll_line_color) //Sets Line color
li_ret = dw_product_graph.SetSeriesStyle("gr_1",ls_product_desc, Foreground!, ll_line_color) // Sets symbol color, including on legend
li_ret = dw_product_graph.SetSeriesStyle("gr_1",ls_product_desc, Dot!, 2)

The third line does actually set the line thickness to 2 as it is supposed to but it will not recognize any line style. It is ALWAYS set to Continuous!

Another strange thing is that all three calls return -1, even though the first two work completely correctly.

This is an issue because the president of the company said we cannot distinguish lines solely by colow because some users may be color blind.

Thank you,

Steven Watkins

steven.watkins@unitedaluminum.com



There are no replies made for this question yet.
However, you are not allowed to reply to this question.