I’m trying to format the text displayed in the categoryAxis but I’m getting the default datField displayed.
I have a csv file with a datafield “year” holding 25 years (2010, 2011, 2012…etc.) and series data for those years.
I want the categoryAxis to show 2010, 11, 12, 13, 14, 2015, 16, 17… etc so skipping the full year text every 5 years.
If I have this as my years array and create this function:
dataField: 'Year', formatFunction: function (value) { var years = ['2010', '11', '12', '13', '14', '2015', etc ...]; return years[value]; }, type: 'date', // also tried default baseUnit: 'year'
I don’t get anything back from the function.
Any ideas ?
Thanks
RCW