Hide Comments
Hide Comments

TRSCustomChartPanel.OnChartValueSelectionChange Event

Comments (0)

Occurs when one of a chart's  Values is selected or deselected. Write an OnChartValueSelectionChange event handler when you want to take action when a chart value's selection changes

Namespace: FMX.RS.ChartPanel

expandingSyntax

Delphi

public
  property OnChartValueSelectionChange: TRSChartValueEvent read FOnChartValueSelectionChange write FOnChartValueSelectionChange;
 

Value

Type: TRSChartValueEvent

expandingExamples

The following code updates a CheckListBox, which has been previously filled with all the values in a chart:

Delphi

procedure TForm1.RSChartPanel1ChartValueSelectionChange(Sender: TObject;
   const Chart: TRSCustomChart; const Value: TRSChartValue);
 begin
      // the check list box was filled earlier with: CheckListBox1.Items.Assign(Chart.Values);
      with CheckListBox1 do
           Selected[Items.IndexOfObject(Value)] := Value.Selected;
 end;

expandingSee Also

Comments (0)

RiverSoftAVG Charting Component Suite (RCCS) © 2005-2015, Thomas G. Grubb