This is a migrated thread and some comments may be shown as answers.

Show Logo on on Kendo Chart in AngularJS

3 Answers 61 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gopal
Top achievements
Rank 1
Gopal asked on 12 Aug 2016, 06:12 AM

Hi, I want to Show logo on kendo chart, So that When We export chart to pdf, then it should be with our logo. I need help?

 

<div kendo-chart="vm.chart"
                 k-options="vm.chartOptions"
                 k-data-source="vm.chartOptions.datasource">
            </div>

 

This is Export button Click Code:

  vm.saveAsPdf = function (event) {
            var elem ;
            if (navigator.userAgent.indexOf("Chrome") !== -1) {
                elem = event.toElement;
            }
            else {
                elem = event.currentTarget;
            }
            //$(elem).parent().next().find('.k-chart').getKendoChart().saveAsPDF();
            var chart = $(".k-chart").getKendoChart();
            title: {
                    text: "Site Visitors Stats /thousands/"
            }
            var fileName = $(elem).closest('li').children().find('.ng-binding').text().trim();
            chart.exportPDF({ paperSize: "auto", margin: { left: "1cm", top: "1cm", right: "1cm", bottom: "1cm" } }).done(function (data) {
                kendo.saveAs({
                    dataURI: data,
                    fileName: fileName + ".pdf"
                });
            });
        }

3 Answers, 1 is accepted

Sort by
0
Accepted
Stef
Telerik team
answered on 12 Aug 2016, 11:10 AM
Hello Gopal,

This is Telerik Reporting forum. Based on the product capabilities, I can suggest you to create a report, where the existing Chart can be saved as an image and displayed in a Reporting PictureBox item.
For example, check Display Telerik Kendo UI Chart in a Telerik Reporting PictureBox item.

If you need help with Telerik Kendo Ui, please submit a support ticket or use the corresponding forum.
Thank you for your understanding.

Regards,
Stef
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Gopal
Top achievements
Rank 1
answered on 16 Aug 2016, 07:19 AM

Hi Telerik Team, 

 

I don't find your suitable. Please provide me exact solution.

0
Stef
Telerik team
answered on 16 Aug 2016, 08:46 AM
Hello Gopal,

Please double-check Display Telerik Kendo UI Chart in a Telerik Reporting PictureBox item. and the provided example in it. The solution is based on Telerik Reporting.

In case you need a solution based only on Telerik Kendo UI, please open a support thread with Telerik Kendo Ui selected as a product of interest. The inquiry will be addressed by the team having the knowledge of the product, that can help you best.
Thank you for your understanding.

Regards,
Stef
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Gopal
Top achievements
Rank 1
Answers by
Stef
Telerik team
Gopal
Top achievements
Rank 1
Share this question
or