Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sample-pdf-download
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Joshua Arosco
sample-pdf-download
Commits
fb7117b8
Commit
fb7117b8
authored
Sep 10, 2019
by
Joshua Arosco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update linechart orientation
parent
b576ad0d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
12 deletions
+22
-12
database/seeds/PetPopularitySeeder.php
database/seeds/PetPopularitySeeder.php
+2
-2
resources/views/domPdf/sample.blade.php
resources/views/domPdf/sample.blade.php
+12
-3
resources/views/frontend/pdf_download.blade.php
resources/views/frontend/pdf_download.blade.php
+8
-7
No files found.
database/seeds/PetPopularitySeeder.php
View file @
fb7117b8
...
@@ -18,11 +18,11 @@ class PetPopularitySeeder extends Seeder
...
@@ -18,11 +18,11 @@ class PetPopularitySeeder extends Seeder
'Cats'
,
'Cats'
,
];
];
foreach
(
range
(
1
,
50
)
as
$value
)
{
foreach
(
range
(
0
,
5
)
as
$value
)
{
foreach
(
$pets
as
$pet
)
{
foreach
(
$pets
as
$pet
)
{
$new_data
=
new
PetPopularityModel
;
$new_data
=
new
PetPopularityModel
;
$new_data
->
pet_name
=
$pet
;
$new_data
->
pet_name
=
$pet
;
$new_data
->
popularity
=
rand
(
$value
,
10
0
);
$new_data
->
popularity
=
rand
(
$value
,
5
0
);
$new_data
->
save
();
$new_data
->
save
();
}
}
}
}
...
...
resources/views/domPdf/sample.blade.php
View file @
fb7117b8
...
@@ -6,8 +6,7 @@
...
@@ -6,8 +6,7 @@
/*sample css*/
/*sample css*/
.heading
{
.heading
{
text-align
:
center
;
text-align
:
center
;
color
:
gray
;
margin-bottom
:
100px
;
font-weight
:
200px
;
}
}
.author
{
.author
{
color
:
#cecece
;
color
:
#cecece
;
...
@@ -30,16 +29,26 @@
...
@@ -30,16 +29,26 @@
h3
{
h3
{
font-weight
:
200
;
font-weight
:
200
;
}
}
h1
{
font-weight
:
200
;
}
hr
{
margin-top
:
50px
;
margin-bottom
:
50px
;
}
</style>
</style>
</head>
</head>
<body>
<body>
<div
class=
"chart heading"
>
<h1>
Sample Charts
</h1>
</div>
<div
class=
"chart"
>
<div
class=
"chart"
>
<h3>
Horizontal Barchart
</h3>
<h3>
Horizontal Barchart
</h3>
<img
src=
"{{$bar_chart}}"
class=
"barchart"
>
<img
src=
"{{$bar_chart}}"
class=
"barchart"
>
</div>
</div>
<hr>
<hr>
<div
class=
"chart"
>
<div
class=
"chart"
>
<h3>
Line Chart
</h3>
<h3>
Vertical
Line Chart
</h3>
<img
src=
"{{$line_chart}}"
class=
"linechart"
>
<img
src=
"{{$line_chart}}"
class=
"linechart"
>
</div>
</div>
<!-- <div class="heading">
<!-- <div class="heading">
...
...
resources/views/frontend/pdf_download.blade.php
View file @
fb7117b8
...
@@ -57,15 +57,16 @@
...
@@ -57,15 +57,16 @@
data
.
addRows
({
!!
$pet_popularity
!!
});
data
.
addRows
({
!!
$pet_popularity
!!
});
var
options
=
{
var
options
=
{
hAxis
:
{
//
hAxis: {
title
:
'
Time
'
//
title: 'Time'
},
//
},
vAxis
:
{
//
vAxis: {
title
:
'
Popularity
'
//
title: 'Popularity'
},
//
},
colors
:
[
'
#ff6384
'
,
'
#36a2eb
'
],
colors
:
[
'
#ff6384
'
,
'
#36a2eb
'
],
curveType
:
'
function
'
,
curveType
:
'
function
'
,
legend
:
{
position
:
'
bottom
'
}
legend
:
{
position
:
'
bottom
'
},
orientation
:
'
vertical
'
,
};
};
var
line_chart_div
=
document
.
getElementById
(
'
line_chart_div
'
);
var
line_chart_div
=
document
.
getElementById
(
'
line_chart_div
'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment