Giter Site home page Giter Site logo

Comments (9)

peter-stuart-turner avatar peter-stuart-turner commented on July 21, 2024 1

You're unbelievably amazing

from angular-google-charts.

FERNman avatar FERNman commented on July 21, 2024

I'll look into it and provide a function to get an image from a chart. Will close this as soon as it's done.

from angular-google-charts.

peter-stuart-turner avatar peter-stuart-turner commented on July 21, 2024

Its a table under the hood (unlike the usual google charts) so the chart object does not provide a getImageURI function - need to use html2canvas probably, trying that out now

from angular-google-charts.

LazeBear avatar LazeBear commented on July 21, 2024

you can have a look of this

from angular-google-charts.

imarthurg avatar imarthurg commented on July 21, 2024

Was there any progress in this improvement?

from angular-google-charts.

ianzimmerman avatar ianzimmerman commented on July 21, 2024

Charts has a method for this: https://developers.google.com/chart/interactive/docs/printing
Can we utilize this in any way?

from angular-google-charts.

jtomek avatar jtomek commented on July 21, 2024

This would be great to have :)

from angular-google-charts.

jtomek avatar jtomek commented on July 21, 2024

So I was looking into it a bit more and it's actually described on the homepage of this repository:

html:

<google-chart #chart [data]="myData" etc. ></google-chart>

component variable definition:

@ViewChild('chart') chart: GoogleChartComponent;

component function:

const wrapper = this.chart.wrapper as any;

wrapper.visualization.getImageURI();

That's it.

from angular-google-charts.

peter-stuart-turner avatar peter-stuart-turner commented on July 21, 2024

Great! Havent looked in this thread in ages but then I assume @FERNman made the function but forgot to close the issue - will close it now

from angular-google-charts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.