google / google-visualization-issues

288 stars 35 forks source link

Annotations stem styling syntax is different from docs. #2038

Open moustacheful opened 9 years ago

moustacheful commented 9 years ago

Hey! Just a heads up. Currently on every part regarding annotations there's mention of the possibility of doing this to globally style annotations' stems:

options = {
    annotations:{
        stem:{
            color: 'red',
            length: 20
        }
    }
}

Apparently, this is not the case, and the correct syntax is (currently) the following

options = {
    annotations:{
        stemColor: 'red',
        stemLength: 20
    }
}

I'm having a similar issue with the highContrast option, which doesn't seem to work.

dlaliberte commented 9 years ago

I forget when we made the change, but the stem: { ... } form might only apply to version 42. If you load 1 or 1.1 now, you will get v42. Later today, 1.0 will also be v42.

moustacheful commented 9 years ago

Ah, I see. Have you considered versioned documentation (similar to the angular documentation https://docs.angularjs.org/api), now that you've implemented the version freezing feature? I would love to see this!

dlaliberte commented 9 years ago

We really do need to support versioned documentation, now that frozen versions are becoming available. Not sure when we will be able to get to it.

nbering commented 9 years ago

I agree. I've already provided support for one or two users where to issue turned out to be that the documentation was showing something that depended on 1.1, and they were using 1.

peterlitvak commented 6 years ago

This seems to be pretty old issue but I have a problem with highContrast which doesn't seem to work, what would be the correct property name for it?