If you are changing the options from one chart to the next, then you should use different options objects. If they are sharing the same object, it is certainly possible, due to the internal asynchrony involved in chart drawing, that when you change the options for one chart, you are also affecting another chart that is using the same options object.
In other words, the chart doesn't copy the options object when you draw the chart. There are some situations in which it is copied, but this is not something you can rely on. The column header labels are used in the legend, by the way, and so if you share the same datatable across charts, but vary the data each time, it's the same kind of problem as for sharing the options object. But perhaps I am missing what you are asking about. Can you point me to your web page with the multiple charts? On Wed, Jun 14, 2017 at 10:10 AM, Jayme Jeffman <[email protected]> wrote: > Hello, > > I have five different charts with the same structure, the differences are > the vertical axis title and perhaps the axis labels and limits . > > Initially, for testing purposes, I am using the same line options > JavaScript object, but I am getting different behaviours, the columns > legend is being overwritten in the second chart. > > Should I have different line options for each chart? Or can I reutilize > the same line options code? > > Thank you very much. > > Best regards. > > Jayme Jeffman > > -- > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to google-visualization-api@ > googlegroups.com. > Visit this group at https://groups.google.com/ > group/google-visualization-api. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/google-visualization-api/0687883f-2bd6-491d-bd50- > 9763fc978c43%40googlegroups.com > <https://groups.google.com/d/msgid/google-visualization-api/0687883f-2bd6-491d-bd50-9763fc978c43%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> [email protected] <[email protected]> 5CC, Cambridge MA -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-visualization-api. To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJMa4U%3DXeFD4%3D_dwEcpY7H2RgrzHHLSU6tR9N1ZO%2BGn%2BCg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
