简体   繁体   English

ngx-charts 步骤图

[英]ngx-charts Step chart

Is it possible to implement a step chart using ngx-charts?是否可以使用 ngx-charts 实现步骤图?

https://swimlane.gitbook.io/ngx-charts/ https://swimlane.gitbook.io/ngx-charts/

Step chart example步骤图示例

Thank you谢谢

Out of the box?盒子外面? I don't think so.我不这么认为。 Simplest way is data multiplication I guess.我猜最简单的方法是数据乘法。

在此处输入图像描述

export var multi = [
  {
    name: 'USA',
    series: [
      {
        name: '1990',
        value: 250000000,
      },
      {
        name: '2010',
        value: 250000000,
      },
      {
        name: '2010',
        value: 25000000,
      },
      {
        name: '2011',
        value: 25000000,
      },
      {
        name: '2011',
        value: 88000000,
      },
      {
        name: '2012',
        value: 88000000,
      },
    ],
  },
];

Working example: https://stackblitz.com/edit/swimlane-line-chart-bl4wjq?file=app%2Fdata.ts工作示例: https://stackblitz.com/edit/swimlane-line-chart-bl4wjq?file=app%2Fdata.ts

OK, I switched to Angluar wrapper for Apache Echarts.好的,我切换到 Apache Echarts 的 Angular 包装器。 They have step chart out of the box.他们有开箱即用的步骤图。

https://xieziyu.github.io/ngx-echarts/#/welcome https://xieziyu.github.io/ngx-echarts/#/welcome

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM