score:0

Accepted answer

has i was saying, this might be a good solution for your problem. i've made a simple example demonstrating a multiline chart with strings at xaxis:

https://codepen.io/anon/pen/nmvglo

here you can see how did i build part of the chart "data"

var data = {
     labels:["2015", "2016", "test"],
     datasets:[
     {
         label: "data1",
         fill: false,
         linetension: 0.1,
         bordercolor: "red",
         pointhoverbackgroundcolor: "yellow",
         data: [
            {x:"2015",y:5},
            {x:"test",y:10}
         ]
      },
      {
         label: "data2",
         fill: false,
         linetension: 0.1,
         bordercolor: "blue",
         bordercapstyle: 'square',
         pointhoverbackgroundcolor: "yellow",
         data: [
             {x:"2015",y:5},
             {x:"2016",y:10}
         ],
         spangaps: true,
      }
   ]
};

Related Query

More Query from same tag