score:0
I get what you are asking, you can get the compiled blade template ie: in HTML format using the render()
method like the following.
$html = view('graphMaker')->render()
But the problem is that the chart you are trying to make is done using chart.js
which is a clientside library. Which means you need a browser to draw the actual chart.
One option is to render the chart from server-side (ie: in PHP itself) using a library (Which you will have to find yourself but one link is here) and pass the rendered html to Mpdf
for making the pdf, But the fact is there are no good charting options in the server-side.
The best bet I think is to use the chrome driver to load the HTML and take a screenshot (If I am not wrong you can directly make PDF from it)
Source: stackoverflow.com
Related Query
- Is there a way to make a view run without having to show the view in the browser in laravel?
- Is there any way to show a tooltip for points which are not visible on the chart in Chart.js?
- Is There any way to show image on top of the stacked bar, Am getting image on every color Instead of that i need only on top of each bar
- Is there a way to adjust only the bottom padding of a chart's title in Chart.js?
- Is there a way to apply css on chart.js V3.7.0 tooltip without it being custom or external?
- Is there any way to use 2 different color for the same bar in a chart?
- Is there any way to change the font color and size of labels in Chartjs 3.0.0
- Is there a way to change part of the title to another font style or set a custom title format in Chart.js?
- Passing an Array from a Flask view to the javascript code of another view
- Is there a convenient way to print values to a JS chart from a CSV file without converting it?
- Is there any way to get y of specific x which not belongs to the dataset in Chart.js graph?
- Is there a way to change the react-chart-js tooltip only on a graph?
- Update only Chart.js without animations and without refreshing the browser
- Is there a way to give a pie chart in chart.js a different color outer border than the border color between segments?
- is there a way to change the dispaly of a date
- ChartJS, make the bars show correct percentage?
- Is there any way to change the font size of labels in bar chart in Chart.js v3?
- Chart.js how to show line chart without displaying the labels on xaxis and yaxis
- Is there a way to align title and legend on the same line?
- Is there a more optimized way to implement the change function of chart js upon changing the dropdowns?
- how can I show only 2 numbers on the xAxe in Chartjs having more than two numbers on the chart? (line chart)
- Is there any way to show tooltip by default (without hover pie chart) on chartjs
- My data array has null values in chart.js. Is there a way to draw a line between the two segments to maintain visual progress?
- Any way to make the y-axis border longer in chart.js?
- Chart.js how to make chart only show the most recent data
- ChartJs: Is there a way to control the font options per line for a multiline axis label
- Is there a way to have the tooltips always shown on a pie/doughnut in Chart.js v3?
- In ng 2 chart during the load an undefined legend gets created automatically ,Is there any way to remove it?
- is there a way to change the date format in php?
- How to show the data labels without hovering the mouse on the bubbles
More Query from same tag
- How to get data from JSON for chart.js, using vue.js
- Position of the x-axis labels is not in sync with the line chart data points
- plugins.legend.align are incompatible types typescript chartjs
- subcategories for each bar in multibar chart using chartjs
- How do I override the function convertTicksToLabels chartjs
- Chart.js v2 overwrite draw function
- How to hide the legend display for a specific chart?
- Dataset push in for loop only 1 time instead of 3
- Charts.js in Django: Charts cannot appear
- Chart.js legend alignment left side
- chartjs table each making series not proceeding to next tr
- Chart js custom separate legend returns error when clicking legend
- Stacked line chart not displaying correctly when Xaxis is time
- Cannot create property 'datasets' on string
- Chart.js: Create custom major ticks on log x-Axis?
- Chartjs updating point titles
- dump missing date in data for chartjs
- Chartjs (Non Vue) Not Rendering Graph Chart inside V-if/V-show
- Chart.js 3+, Firefox 68 and Angular: "ReferenceError: "ResizeObserver is not defined"
- Tiny error in the ChartJs book
- ChartJS is not rendered
- Android WebView HTML5 canvas error
- Chartjs not showing up in Foundation5 Tabs
- Chart.js how to modify an existing legend
- Chartjs - display radarchart lines from center to corner value
- Why can't I update the aspectRatio within the chartjs chart?
- Can't make chart with Chart.js
- hide labels and 0 values in chart.js?
- Is there a way to filter data in Chart.js?
- Chart Js flickering or switching as i move mouse on canvas