Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
416 views
in Technique[技术] by (71.8m points)

c3.js - c3 line chart using with Angular 8

enter image description here

Here I attached the image I want to add points like is showing in the image on the graph. one dataset is already showing it working awesome. but I want to add some extra information on the line. is it possible?? I am using c3 chart lib.

 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, class: 'grid4', 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'},

      // ]
    });
question from:https://stackoverflow.com/questions/65859114/c3-line-chart-using-with-angular-8

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...