Quantcast
Channel: Measurement Studio for .NET Languages topics
Viewing all articles
Browse latest Browse all 1999

different colors for items in MultiPlot Cursor

$
0
0

Hi Folks.

 

I've got a chart with up to 10 traces. I'm using a MultiPlotCursor to show the values along the trace. Is there a way to show the cursor values of each trace in different colors? I assumed that the values would be shown in the color assigned to the LinePlotRenderer, but that appears to not be the case. And, is there a way to use different value formatting for the X and Y axes?

 

I've tried this, but it doesn't seem to be working. That is, the chart and cursor are working, just not the coloring and data formatting.

 

<ni:Graph.Children>
   <ni:MultiPlotCursor Name="plotCursor" Label="Multi-Plot Cursor"> 
      <ni:MultiPlotCursor.ValuePresenter>
         <ni:ValueFormatterGroup FontSize="14" Background="#99FFFFFF" >
            <ni:GeneralValueFormatter Foreground="Green" Format="0.0" />
            <ni:GeneralValueFormatter Foreground="Magenta" Format="0.00" />
            <ni:GeneralValueFormatter Foreground="Cyan" Format="0.000" />
         </ni:ValueFormatterGroup>
      </ni:MultiPlotCursor.ValuePresenter>
   </ni:MultiPlotCursor>
</ni:Graph.Children>

 

I can make adjustments in the code-behind too, if there is a better solution that way.

 

 

Thanks.

Don


Viewing all articles
Browse latest Browse all 1999

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>