Jump to content
Software FX Community
pbodavula

Setting scale section properties in code for chart fx horizontal gauge

Recommended Posts

Hi,

I am using below code to set section properties for horizontal gauge with trial version.

 double trcMin = this.ParseReportDataObject(metricsLookup["XXX"], "Min");

double trcMax = this.ParseReportDataObject(metricsLookup["XXX"], "Max");if (!trcMin.Equals(double.NaN) && !trcMax.Equals(double.NaN) && trcMin != trcMax)

{

this.horizontalGauge.Scales[0].Sections[0].Min = trcMin;

this.horizontalGauge.Scales[0].Sections[0].Max = trcMax;this.horizontalGauge.ToolTip = this.horizontalGaugeTRC.ToolTip + string.Format(XXX, groupByName, trcMin, trcMax);

}

else if (trcMin == trcMax)

{

this.horizontalGauge.MainScale.Sections[0].Visible = false;this.horizontalGauge.ToolTip = this.horizontalGaugeTRC.ToolTip + string.Format(FACTOR_LEVEL_TOOLTIP, groupByName, trcMin, trcMax);

}

else

{

this.horizontalGaugeTRC.MainScale.Sections[0].Visible = false;

}

 My problem here is even when min and max are same, though i set sections[0] visible property to false, the section is showing up in the horizontal gauge.

Please let me know is there any fix for this.

Thanks

Padmaja 

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...