【问题标题】:AngularJs charts fix y-axisAngularJs 图表修复 y 轴
【发布时间】:2016-08-30 08:40:56
【问题描述】:

有没有人知道当我在 Angular ChartsJS 库上向右滚动时是否可以修复 y 轴?我在文档中进行了搜索,但一无所获。我可以用其他方法解决它吗?

提前致谢!

【问题讨论】:

    标签: angularjs scroll charts


    【解决方案1】:

    我想你正在寻找这个 fiddle

    最初回答here

    <div class="chartWrapper">
     <div class="chartAreaWrapper">
        <canvas id="myChart" height="300" width="1200"></canvas>
     </div>
     <canvas id="myChartAxis" height="300" width="0"></canvas>
    </div>
    

    【讨论】:

    • 我正在使用图表 js 2。你知道我该如何适应这个
    • 如果我使用这个,我得到这个错误:angular.js:13236 TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided value is not of type '(HTMLImageElement or HTMLVideoElement or HTMLCanvasElement或 ImageBitmap)'
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-05-31
    • 1970-01-01
    • 2015-06-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-21
    相关资源
    最近更新 更多