Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convertOptions #22

Open
seb-vial opened this issue Mar 14, 2017 · 1 comment
Open

convertOptions #22

seb-vial opened this issue Mar 14, 2017 · 1 comment

Comments

@seb-vial
Copy link

Hello,

Is there a way to use convertOptions for charts that allow it; to use some 'beta' options like in the Bar chart for example

image

I'm guessing this could be added as an optional prop ?

@rzb
Copy link

rzb commented Mar 30, 2017

I'm looking for the same thing. I don't think there's any way to do it other than forking the repo and placing checks in the buildWrapper method from the chart component. Something like:


methods: {
    buildWrapper (chartType, dataTable, options, containerId) {
        if (chartType == 'google.charts.Bar') {
            options = google.charts.Bar.coverOptions(options)
        } else if (chartType == 'google.charts.Line') {
            options = google.charts.Line.coverOptions(options)
        } else if (chartType == 'google.charts.Scatter') {
            options = google.charts.Scatter.coverOptions(options)
        }

        let wrapper = new google.visualization.ChartWrapper({
            chartType: chartType,
            dataTable: dataTable,
            options: options,
            containerId: containerId
        })

        return wrapper
    },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants