Charts in Ionic


Hi guys,
I’m trying to add a barchart to my app to display data as a result.
It’s working almost perfectly at the moment but i wanted to remove the piece at the top that shows ‘Issue as a %’. In my code below its determined by the ‘label’ identifier, and removing this just gives an ‘undefined’ text, but keeps the color bar. This color seems to be determined by the first rgb value in my ‘backgroundColor’ data set.
Any ideas guys?


    this.barChart = new Chart(this.barCanvas.nativeElement, {
      type: 'horizontalBar',
      data: {
        labels:["RISK", "MOBILITY", "SLEEP", "MOTIVATION",
        "SELF EST..", "CLOSE REL..", "SOCIAL ACTIV.."],
        datasets: [{
          label: 'Issue as a %',
          data: [this.risk, 12, 3, 25, 45, 60, 5],

this gives a result like so.



Try adding a section for the chart title:
title: {
text: ‘’

See the demo jsfiddle from highcharts:


That will remove the text, but the bar stays at the top.
Maybe it comes with it but seems like there should be a way around it.


options: {
legend: {
display: false



Perfect, thank you very much. Much appreciated.