How can I show a tooltip on the ChartAdornmentInfo symbol?
Hi Brian,
Thanks for using Syncfusion products.
We have analyzed your query. Your requirement for “ToolTip support for ChartAdornment” in Chart Area mouse over event can be achieved and we have prepared the sample based on your requirement. Please download the sample from following location.
Please let us know if you have any queries.
Regards,
M. Sheik
ChartAdormentToolTip_91e2b9db.zip
I have seen this sample when googling .
but i come to know my requirement is different i want to show 4 ractangle and based on property of Item shource i want to change color of those ractancle .
one more point property that we need to bind is differnt from that of Y axis and X axis.
i am sending to xaml and screen shot of that binding.
<Rectangle Width="7" Height="10" >
<Rectangle.Style>
<Style TargetType="Rectangle">
<Style.Triggers>
<DataTrigger Binding="{Binding Record.Data.RegulationMode, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Value="0" >
<Setter Property="Fill" Value="Black"/>
</DataTrigger>
<DataTrigger Binding="{Binding Record.Data.RegulationMode, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Value="1" >
<Setter Property="Fill" Value="Red"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Rectangle.Style>
</Rectangle>
<Rectangle Width="7" Height="10" >
<Rectangle.Style>
<Style TargetType="Rectangle">
<Style.Triggers>
<DataTrigger Binding="{Binding Record.Data.RegulationMode, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Value="0" >
<Setter Property="Fill" Value="Black"/>
</DataTrigger>
<DataTrigger Binding="{Binding Record.Data.RegulationMode, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Value="1" >
<Setter Property="Fill" Value="Green"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Rectangle.Style>
</Rectangle>
<Rectangle Width="7" Height="10" >
<Rectangle.Style>
<Style TargetType="Rectangle">
<Style.Triggers>
<DataTrigger Binding="{Binding Record.Data.RegulationMode, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Value="0" >
<Setter Property="Fill" Value="Black"/>
</DataTrigger>
<DataTrigger Binding="{Binding Record.Data.RegulationMode, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Value="1" >
<Setter Property="Fill" Value="Orange"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Rectangle.Style>
</Rectangle>
<Rectangle Width="7" Height="10" >
<Rectangle.Style>
<Style TargetType="Rectangle">
<Style.Triggers>
<DataTrigger Binding="{Binding Record.Data.RegulationMode, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Value="0" >
<Setter Property="Fill" Value="Black"/>
</DataTrigger>
<DataTrigger Binding="{Binding Record.Data.RegulationMode, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Value="1" >
<Setter Property="Fill" Value="Blue"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Rectangle.Style>
</Rectangle>
where item shource collection (ObservableCollection) of this class
public class HistoGramSBPWBP : IDisposable, ICloneable
{
public HistoGramSBPWBP();
public string Comment { get; set; }
public byte[] CurrentCurve { get; set; }
public string Date { get; set; }
public float Energy { get; set; }
public byte[] ForceCurve { get; set; }
public decimal FQF { get; set; }
public string GhostRunMode { get; set; }
public string GunName { get; set; }
public long ItemCount { get; set; }
public uint Length { get; set; }
public uint LogNo { get; set; }
public decimal MeanCurrent { get; set; }
public decimal MeanForce { get; set; }
public decimal MeanPulse { get; set; }
public uint MeanResistance { get; set; }
public uint MeanVoltage { get; set; }
public int PSF { get; set; }
public byte[] PulseCurve { get; set; }
public int RegulationMode { get; set; }
public uint SequenceBlock_Id { get; set; }
public uint SequenceBlockNo { get; set; }
public int SpatterTime { get; set; }
public string SpotName { get; set; }
public uint SpotNo { get; set; }
public string STCReferenceSelection { get; set; }
public string STCTeachName { get; set; }
public string TimerName { get; set; }
public uint TipDressCount { get; set; }
public uint TipWearCount { get; set; }
public int UIP { get; set; }
public bool UirModeOff { get; set; }
public long UnixEpochDate { get; set; }
public byte[] VoltageCurve { get; set; }
public string WeldError { get; set; }
public string WeldJobName { get; set; }
public uint WeldJobVersion { get; set; }
public string WeldProtocolMonitorErrorCode { get; set; }
public object Clone();
public void Dispose();
protected virtual void Dispose(bool disposing);
}
Attachment: Graphs_314ccef8.7z
Thanks for contacting Syncfusion Support.
We can achieve your requirement using CustomTemplate in ColumnSeries.We have prepared the sample for your reference and please download the sample from the following location.
Sample: CustomTemplate
Regards,
Rachel. A
- 3 Replies
- 4 Participants
-
BH Brian Harkness
- Jun 7, 2013 11:51 AM UTC
- Sep 30, 2015 12:31 PM UTC