When I use HighCharts angular so I get this error, Type '{ text: string; }' is not assignable to type 'TitleObject'.
const sampleData: Highcharts.Chart = {
chart: {
type: 'column',
},
title: { text: 'Total Predected Revenue Vs Actual Revenue' },
xAxis: {
categories: [
'2010',
'2011',
'2012',
'2013',
'2014',
'2015',
'2016',
'2017',
],
crosshair: true,
},
yAxis: {
min: 0,
},
series: [
{
name: 'Predected',
data: [14, 17, 9, 10, 6, 19, 6, 8] ,
} ,
{
name: 'Actual',
data: [65, 74, 44, 66, 9, 23, 36, 51],
},
],
};
for Title, categories,yaxis, and for data i get the error Type '{ }' is not assignable to type ' '. in highcharts