Comments (9)
You're unbelievably amazing
from angular-google-charts.
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.
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.
you can have a look of this
from angular-google-charts.
Was there any progress in this improvement?
from angular-google-charts.
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.
This would be great to have :)
from angular-google-charts.
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.
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)
- New version release which is compatible with Angular 13+ HOT 3
- Push latest version to npmjs.com HOT 2
- how to clear table in the latest api? HOT 1
- New version 2.2.3 is not compatible with the current stable version of Angular (v13.2.0) HOT 8
- Angular v8. Compilation fails when importing the module. Error states: 'Please add a @NgModule annotation'
- Unable to install angular-google-charts in project
- Angular google chart Version 2.2.2 Is not working on my existing Angular 9 Application HOT 1
- Use Types interfaces in project
- GoogleChartPackagesHelper.getPackageForChartName for angular 14
- The target entry-point "angular-google-charts" has missing dependencies: - @angular/core
- Update peerDependencies for Angular 15 HOT 4
- Locale Support HOT 1
- Expand Row interface definition HOT 1
- I don't get any error but I don't see anything
- Calendar Heatmap Type Not Work dynamicResize
- Angular 16 support HOT 8
- Customize tooltip
- broaden type Row in chart-base.component.ts HOT 1
- Memory leak
- This library is unmaintained HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-google-charts.