Show Logo on on Kendo Chart in AngularJS

4 posts, 1 answers
  1. Gopal
    Gopal avatar
    3 posts
    Member since:
    Aug 2016

    Posted 12 Aug Link to this post

    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"
                    });
                });
            }

  2. Answer
    Stef
    Admin
    Stef avatar
    3036 posts

    Posted 12 Aug Link to this post

    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
  3. DevCraft banner
  4. Gopal
    Gopal avatar
    3 posts
    Member since:
    Aug 2016

    Posted 16 Aug Link to this post

    Hi Telerik Team, 

     

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

  5. Stef
    Admin
    Stef avatar
    3036 posts

    Posted 16 Aug Link to this post

    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
Back to Top