May it will be better to do on server side, when PlotSeriesDto creates ?