【问题标题】:is it possible to get time in box charts in chartjs?是否可以在 chartjs 的箱形图中获得时间?
【发布时间】:2021-06-16 13:00:12
【问题描述】:

请在箱形图中找到下图的时间,是否可以在 chartjs 或 ng2-charts 中获得相同的 UI? 请在这里提供帮助。 enter image description here

【问题讨论】:

    标签: charts chart.js ng2-charts ngx-charts


    【解决方案1】:

    是的,这是可能的。对于圆形数据点,您可以使用气泡图并使用注释插件 (https://github.com/chartjs/chartjs-plugin-annotation) 或编写自定义插件来绘制框

    【讨论】:

    • 您好 LeeLenalee,感谢您的回复。请给我自定义插件代码,我不知道编写自定义插件来绘制框。请在这里帮助我。或者也共享相同的 UI url。
    • 请帮帮我,LeeLenalee。
    • 你可以看看this fiddle on how to use the plugin api to draw the lines on canvas like you want,你可能想让它们看起来更好看,而且可能不会像这样硬编码,因为它们调整大小时不会停留在画布上的正确位置。 jsfiddle.net/Leelenaleee/3d4p9mgk/17
    猜你喜欢
    • 2011-01-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-01-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多