• Resolved jflycn

    (@jflycn)


    chart_legend_position="bottom" does not work in a line chart, i.e. the legend show at the default position: right side.

    But the chart shows fine, other options also works.

    [gdoc key="https://docs.google.com/spreadsheets/d/xxx/edit#gid=yyy" chart="Line" chart_legend_position="bottom" chart_point_size="2" chart_interpolate_nulls=true]

    The generated html does have data-chart-legend-position='bottom'.

    Not sure whether this is Google Charts’ problem or the plugin’s problem.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jflycn

    (@jflycn)

    The plugin sets option “legendPosition”.

    But as I tested within the js, only options.legend = {position: "bottom"}; works.

    Neither of the following works:

    options['legend.position'] = "bottom";

    options.legendPosition = "bottom";

    Plugin Author Meitar

    (@meitar)

    You’re right, that’s a bug in this plugin. chart_legend_position is not supposed to be there; it should just be chart_legend, and the value should be an object. You might want something like chart_legend='{"position": "bottom"}'. Try that and let me know if it works?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘chart_legend_position not working?’ is closed to new replies.