使用 Angular 8 的 c3 折线图

问题描述

enter image description here

在这里我附上了我想添加点的图像,就像在图表上的图像中显示的那样。 一个数据集已经表明它工作得很好。但我想在线上添加一些额外的信息。 是否有可能?? 我正在使用 c3 图表库。

 let chart = c3.generate({
      bindto: '#chart',data: {
        x: 'x',xFormat: '%Y-%m-%d %H:%M:%s',columns: [
         [34,45,45],['val1','val2','val3'],]
      },legend: {
        show: false
      },grid: {
        x: {
          show: false
        },y: {
          show: true,lines: [{ value: this.hth,class: 'grid4',text: this.hth,position: 'start' },{ value: this.lth,text: this.lth,position: 'start' }],}
      },axis: {
        y: {
          max: 10,min: -10
        },x: {
          type: 'timeseries',tick: {
            fit: false,format: '%Y-%m-%d %H:%M:%s',}
        }
      },point: {
        show: true,r: 5
      },//   regions: [

      //     {axis: 'y',start: 70,end: 90,class: 'regionY'},// ]
    });

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)