In this example we have a dashboard that contains a circular gauge and a blank embedded chart. Using the "OnClick" function we can load the tag that is linked to the circular gauge onto the chart by clicking the gauge itself. This functionality works for any type of control that has an OnClick property.
public void CircularGauge1_Click(object sender, EventArgs e)
{
string sourceTag;
CanaryCircularGauge ccg = sender as CanaryCircularGauge;
sourceTag = ccg.SourceTag;
TrendGraph1.AddTrendExternal(sourceTag, sourceTag, "TimeAverage2", TimeSpan.Zero, TimeSpan.Zero, true);
}
Comments
0 comments
Please sign in to leave a comment.