brunotoira Posted April 15, 2014 Posted April 15, 2014 I need to change Series title at runtime... Series1.Title:='Random'+formatDatetime('hh:mm:ss',now); Anyone knows how do that?
Sherzod Posted April 15, 2014 Posted April 15, 2014 Hi. Try: tested for TUniLineSeries procedure TMainForm.UniButton1Click(Sender: TObject); var //Series: legendIndx: Byte; legendNewTitle: string; chartJSName: string; begin //Series: legendIndx := 0; legendNewTitle := 'New Title'; chartJSName := UniChart1.JSName; UniSession.AddJS('if ('+ chartJSName +'.items.items[0].legend.items['+ IntToStr(legendIndx) +']) {'+ chartJSName +'.items.items[0].legend.items['+ IntToStr(legendIndx) +'].series.setTitle("'+ legendNewTitle +'")};'); end; Best regards
gpaulino Posted April 24, 2014 Posted April 24, 2014 Another way is if WebMode then begin BSeries_P.Title:='Dolor de Cabeza.'; BSeries_S.Title:='Dolor de Oidos.'; BSeries_T.Title:='Fiebre Alta.'; end; tested on version 0.95.0.1046
Recommended Posts