Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Reprocessing Point in Graph after Range Change

Highlighted

Reprocessing Point in Graph after Range Change

Hi,

 

I am plotting Point A on a graph by passing it in to the data source. Then I change Point A to Point B by replacing that data item in the graph with the new point. The vertical axis adjuster is set to fit loosely, so the range adjusts, then I swap out Point B for Point A. In my renderer, the first time Point A is being plotted, it shows up in the RenderGraphCore function as a percentage of the display window .3. Then, the second time I try passing in Point A, after the axis has adjusted, the percentage in RenderGraphCore is still .3. Does anyone know why the second processing of the point isn't taking into account the range change? 

 

Thanks,

Kelly

0 Kudos
Message 1 of 3
(54 Views)

Re: Reprocessing Point in Graph after Range Change

Just as a heads up, I got it working. I called UpdateLayout on the graph which I am guessing reestimated the axis range which the renderer in turn used, producing the correct percentages of the new range.

0 Kudos
Message 2 of 3
(35 Views)

Re: Reprocessing Point in Graph after Range Change

I tried to reproduce the issue using the custom point renderer example, but could not get the behavior you described. When I changed just the Y value on the point object and refreshed the graph, the yValues collection in the renderer always updated (and the xValues stayed in place, since X was unchanged).

 

Could you provide a small test application that demonstrates the problem?

~ Paul H
0 Kudos
Message 3 of 3
(28 Views)