Starting right away, here's the requested chart using ChartJS. We have two x-axes. One displays power from a meter and the other displays meter state over time (open, closed, or in standby). Both datasets use Unix time on the X axis. The Y axis for power is numerical, while the state X axis falls into one of three categories. Both datasets are represented with lines. https://i.sstatic.net/rvUJ1.png
To cut to the chase: How can I achieve this with Highcharts? I already have the second axis set up:
xAxis: {
type: 'datetime'
},
yAxis: [
{
title: {
text: 'Real Power'
}
},
{
type: 'category', //I have also removed this line
title: {
text: 'state'
},
categories: ['closed', 'standby', 'open']
}
],
Any attempt to make the Y axis value a string in Highcharts leads to a familiar error: https://www.highcharts.com/errors/14/
Additionally, it seems that online resources only focus on categories for the X axis. Any guidance on how to accomplish this task would be greatly appreciated. Thank you in advance.