Thanks for your report, Stanley.  I'm not sure yet why there is a
difference between the two cases you attached, and worse, why the examples
on the vegachart documentation examples now show very truncated axes.
There was a change in the latest version of Google Charts (v50) such that
the default padding ends up behaving differently, and explicit padding has
a different effect, but this outcome is surprising to me.

Any difference in VegaChart from the default behavior of Vega by itself
could be considered a bug.  But there is potential conflict with the
default behavior of other Google Charts, so we will have to find a
reasonable compromise.

In the short term, you might need to add explicit padding that is large
enough to show the axes and the gradient legend.   E.g. The example of the
VegaChart heatmap with explicit padding looks OK:
https://jsfiddle.net/dlaliberte/h1jd8m7t/


On Mon, Apr 26, 2021 at 6:35 PM Stanley George <stanley.s...@gmail.com>
wrote:

> Dear Team
> I am currently trying VegaChart heatmap feature for my research project.
> Using the example on the docs page, I am able able to generate an heatmap.
> But the Color palette is missing. The JSON script provided on the vega
> documentation page (https://vega.github.io/vega/examples/heatmap/) shows
> a Color palette getting generated. But its not getting show when embedded
> inside Google Charts
>
> PFA the html code for a) with google charts b) directly calling vega
>
> --
> 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 google-visualization-api+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-visualization-api/9ff26418-31bb-4766-aeed-c645b49e22f0n%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/9ff26418-31bb-4766-aeed-c645b49e22f0n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 

• Daniel LaLiberte

 • SWE

 • Cambridge MA

 • dlalibe...@google.com <dlalibe...@google.com>

-- 
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 google-visualization-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJOGgps2PAFKm2YSyxeikjjFxumi4-0RE%2B-KJJS6Ci56hA%40mail.gmail.com.

Reply via email to