@kkasiviswa There might be one or two chart types that support that. What chart type are you looking at?
There's "explorer" mode, but unfortunately this isn't supported by angular-google-chart because the data binding breaks it. The user-interaction state isn't persisted when the chart is re-drawn.
The next-best thing would be the "annotation chart", but I imagine it will suffer from the same issue.
In the past, I've supported changes to the chart range by implementing it in the Angular code. Since the range changes are implemented from the side that causes the re-draw, instead of the chart's internal state.. it makes the experience a little smoother.
Does anyone ever created a custom pattern formatter ?
I have this value 542 that represent the number of days
and I want to format it and display on my chart 1yr5m
any ideas how I can do that ?
Thanks!
Nicholas Bering
@nbering
I would provided that as a formatted value in your DataTable rather than using a Formatter.
I would give you a more detailed answer but I’m limited in my time during the workday so I can’t go look for links for you.
maylin2019
@maylin2019
Hello, may I ask how to dynamic add data to google chart after initialize the chart object in AngularJS?
Nicholas Bering
@nbering
The library provides data binding using Angular’s regular change detection mechanism. Just change your object and the chart will be redrawn.
maylin2019
@maylin2019
Hi Nicholas, thanks for the response. It helped. Now I am trying to customize tooltip based on the post at https://codepen.io/Toomaaa/pen/EmBwwZ. However when I tried something as simple as {"v":"<div>My Customized Tooltip</div>"} , I did get "My Customized Tooltip", instead I got the raw HTML "<div>My Customized Tooltip</div>". I had all the options setup correctly.
Nicholas Bering
@nbering
There’s a property you can set on the column to support HTML.
Taking a look at your sample.
Nicholas Bering
@nbering
@maylin2019 Can you provide a sample of what you're trying that doesn't work?
maylin2019
@maylin2019
I did look deeply into the sample. I have options.tooltip: {isHtml: true}, as well as cols {id:"tooltip", type:"string", role:'tooltip', 'p':{'html':true}},