Remove white Space on right side in Dygraphs

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 06:33:44

问题


I'm developing a chart without legend or axis. In this chart I'm also drawing via the 2d context and the underlayCallback option.

The Problem I can not resolve is a mysterious white space on the right side of the chart (about 5px).

I modified a jsFiddle to represent the Problem:

http://jsfiddle.net/12magkox/

Dygraph Constructor for removing the legend and the axis:

legend: 'never',
    axes: {
      x: {drawGrid: true, drawAxis: false},
      y: {drawGrid: true, drawAxis: false}
    },

回答1:


Check out the rightGap option. Your estimate of "about" 5px looks to be spot-on!

rightGap

Number of pixels to leave blank at the right edge of the Dygraph. This makes it easier to highlight the right-most data point.

Type: integer

Default: 5



来源:https://stackoverflow.com/questions/39507710/remove-white-space-on-right-side-in-dygraphs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!