Bar chart for years

Hello.


I need to show bars with cash values for some years. X-values should be for example from 2012 to 2020. Bars should be just for 2015 and 2017 for example. Can I get this without AddSinglePoint(0, '2012'), etc?

Thanks

If you want to add just to values, i.e. for 2015 & 2017, easiest is to use: 
AddSinglePoint(0, '2015'), 
AddSinglePoint(0, '2017'),

If you want to add bart chart values for a series of years, you can use the overload AddSinglePoint(0, datetimevalue) with datetimevalue of type TDateTime for a date each year you want to have a value.

Thanks