I am currently using angular to display the highcharts. I need to show a columnRange chart with respect to time and user name. But i am unable to do so.
So the time i get through API is in string format('07:34:25') and i cannot show string in a columnRange chart directly.For that i tried converting it into date. Which was not possible. I also tried using moment.js but it was also returning only string.
Also after some search i got one solution to add type of 'datetime' in yAxis.
yAxis: {
type: 'datetime',
min: 0,
title: {
text: charSeries.title,
},
}
But it is throwing error.
src/app/features/adminControl/modules/analyticsReport/components/averageDailyActionsReport/averageDailyActionsReport.component.ts(157,66): error TS2345: Argument of type '{ chart: { type: string; inverted: boolean; animation: boolean; }; title: { text: string; style: { color: string; font: string; }; position: { align: string; }; }; subtitle: { text: string; style: { floating: boolean; align: string; font: string; }; }; ... 5 more ...; credits: { ...; }; }' is not assignable to parameter of type 'Options'.