Google Charts - How to stretch x axis over chart's full width

martin

I can't figure out why Google Charts draws this simple chart aligned to center and doesn't fill entire white area.
Note: X axis is discrete because it represents weeks.

enter image description here

Do you have any idea what can I do with it?

asgallant

That is how the charts display when you use a discrete (string) axis. If you want edge-to-edge lines, you need to use a continuous (number, date, datetime, timeofday) axis. See an example of the differences here: http://jsfiddle.net/asgallant/Xfx3h/.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

Calculated text column for Google Line Chart x-axis not working

분류에서Dev

How to change section color of a stacked bar chart in Google Charts API?

분류에서Dev

Excel chart: How to reverse the X axis of time series data

분류에서Dev

d3.js: how can I get 'full width' ticks on the y-axis

분류에서Dev

Flot Chart's Bar Width

분류에서Dev

tickinterval not working high chart for x axis

분류에서Dev

Google chart vertical axis strange label

분류에서Dev

Unifont & UnicodeData.txt how do I deduce if character is full or half width (x-advance)

분류에서Dev

How can I make DataGrid columns stretch as the control changes width?

분류에서Dev

Remove blank space above and below Google Charts horizontal column chart

분류에서Dev

How to animate an image as it grows from the width of a container to the full viewport width?

분류에서Dev

Flags placement on x-Axis on dual pane chart

분류에서Dev

Excel 2016 Chart showing random dates in x axis

분류에서Dev

Multiple Y-Axis Google chart with Json data

분류에서Dev

Mouseover effect on full stretch button

분류에서Dev

Stretch nested div width to width of container?

분류에서Dev

Two different x axis labels on line chart, chart.js react

분류에서Dev

How to increase tick label width in d3.js axis

분류에서Dev

How to shrink plot on x-axis in matplotlib?

분류에서Dev

How to show labels on x axis for each element?

분류에서Dev

How to move Date under X axis?

분류에서Dev

How to place 2 spans beside each other with full width with CSS

분류에서Dev

It's possible to use Google Charts api in Android application offline?

분류에서Dev

Google Charts remove white border around vAxis textPosition 'in' text on Bar Chart

분류에서Dev

vAxis : {slantedText : true}는 Bar Chart [Google Charts]에서 가능합니까?

분류에서Dev

WPF ListBoxItem does not stretch to the maximum width

분류에서Dev

CSS Div Layout stretch to fit width and height

분류에서Dev

NVD3 Line Plus Bar Chart X-Axis Ticks 잘못된 정렬

분류에서Dev

How to stretch vertical scroll?

Related 관련 기사

  1. 1

    Calculated text column for Google Line Chart x-axis not working

  2. 2

    How to change section color of a stacked bar chart in Google Charts API?

  3. 3

    Excel chart: How to reverse the X axis of time series data

  4. 4

    d3.js: how can I get 'full width' ticks on the y-axis

  5. 5

    Flot Chart's Bar Width

  6. 6

    tickinterval not working high chart for x axis

  7. 7

    Google chart vertical axis strange label

  8. 8

    Unifont & UnicodeData.txt how do I deduce if character is full or half width (x-advance)

  9. 9

    How can I make DataGrid columns stretch as the control changes width?

  10. 10

    Remove blank space above and below Google Charts horizontal column chart

  11. 11

    How to animate an image as it grows from the width of a container to the full viewport width?

  12. 12

    Flags placement on x-Axis on dual pane chart

  13. 13

    Excel 2016 Chart showing random dates in x axis

  14. 14

    Multiple Y-Axis Google chart with Json data

  15. 15

    Mouseover effect on full stretch button

  16. 16

    Stretch nested div width to width of container?

  17. 17

    Two different x axis labels on line chart, chart.js react

  18. 18

    How to increase tick label width in d3.js axis

  19. 19

    How to shrink plot on x-axis in matplotlib?

  20. 20

    How to show labels on x axis for each element?

  21. 21

    How to move Date under X axis?

  22. 22

    How to place 2 spans beside each other with full width with CSS

  23. 23

    It's possible to use Google Charts api in Android application offline?

  24. 24

    Google Charts remove white border around vAxis textPosition 'in' text on Bar Chart

  25. 25

    vAxis : {slantedText : true}는 Bar Chart [Google Charts]에서 가능합니까?

  26. 26

    WPF ListBoxItem does not stretch to the maximum width

  27. 27

    CSS Div Layout stretch to fit width and height

  28. 28

    NVD3 Line Plus Bar Chart X-Axis Ticks 잘못된 정렬

  29. 29

    How to stretch vertical scroll?

뜨겁다태그

보관