Export Google Chart in PDF Using Laravel Snappy Package

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 10

  • @QiroLab
    @QiroLab  9 місяців тому

    Generate PDFs in Laravel with Spatie/Browsershot
    ua-cam.com/video/320vwRDqi9w/v-deo.html

  • @shirah29
    @shirah29 4 роки тому +4

    why I'm having an error. " Failed to load PDF document. ". I follow all the steps but it doesn't work

  • @juangonzalez4784
    @juangonzalez4784 4 роки тому +2

    I followed all the steps, but even so the graph did not render when exporting, would the jsapi library have changed? since when entering I am redirected to loader.js

    • @Dev_Mentor
      @Dev_Mentor 4 роки тому

      I am also not able to render the graph in PDF but working as HTML, please suggest the work around

  • @juancarloshuamangrados7761
    @juancarloshuamangrados7761 4 роки тому +1

    Thanks for the tutorial :)
    Try to do the same with Bar graph type but in the pdf I get a message "'undefined' is not afunction"



    // google.charts.load('current', {'packages':['corechart', 'bar']});
    // google.charts.setOnLoadCallback(drawStuff);
    function init(){
    google.load('visualization' , '1.1' , {
    packages: ['corechart', 'bar'],
    callback: 'drawStuff'
    });
    }
    function drawStuff() {
    var data = google.visualization.arrayToDataTable([
    ['Galaxy', 'Distance', 'Brightness'],
    ['Canis Major Dwarf', 8000, 23.3],
    ['Sagittarius Dwarf', 24000, 4.5],
    ['Ursa Major II Dwarf', 30000, 14.3],
    ['Lg. Magellanic Cloud', 50000, 0.9],
    ['Bootes I', 60000, 13.1]
    ]);
    var materialOptions = {
    width: 900,
    chart: {
    title: 'Nearby galaxies',
    subtitle: 'distance on the left, brightness on the right'
    },
    series: {
    0: { axis: 'distance' }, // Bind series 0 to an axis named 'distance'.
    1: { axis: 'brightness' } // Bind series 1 to an axis named 'brightness'.
    },
    axes: {
    y: {
    distance: {label: 'parsecs'}, // Left y-axis.
    brightness: {side: 'right', label: 'apparent magnitude'} // Right y-axis.
    }
    }
    };

    var materialChart = new google.charts.Bar(document.getElementById('chart_div'));
    materialChart.draw(data, google.charts.Bar.convertOptions(materialOptions));

    };





    developers.google.com/chart/interactive/docs/gallery/columnchart?hl=es
    Any suggestion?

  • @harshbhagt
    @harshbhagt 4 роки тому

    It's not working in windows
    Can you please help me via video

  • @behappey8494
    @behappey8494 3 роки тому

    anyone if he solve this i will give hime 30$

  • @behappey8494
    @behappey8494 3 роки тому +2

    why I'm having an error. " Failed to load PDF document. ". I follow all the steps but it doesn't work