Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
F
flot
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
HS-public
flot
Commits
95b6b635
Commit
95b6b635
authored
May 28, 2014
by
David Schnur
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1316 from jacoblwe20/0.9-work
Removing appending warning to dom
parents
4ff36332
46719d55
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
jquery.flot.pie.js
src/plugins/jquery.flot.pie.js
+5
-1
No files found.
src/plugins/jquery.flot.pie.js
View file @
95b6b635
...
@@ -254,6 +254,8 @@ More detail and specific examples can be found in the included HTML file.
...
@@ -254,6 +254,8 @@ More detail and specific examples can be found in the included HTML file.
function
draw
(
plot
,
newCtx
)
{
function
draw
(
plot
,
newCtx
)
{
/* global console */
if
(
!
target
)
{
if
(
!
target
)
{
return
;
// if no series were passed
return
;
// if no series were passed
}
}
...
@@ -327,7 +329,9 @@ More detail and specific examples can be found in the included HTML file.
...
@@ -327,7 +329,9 @@ More detail and specific examples can be found in the included HTML file.
if
(
attempts
>=
REDRAW_ATTEMPTS
)
{
if
(
attempts
>=
REDRAW_ATTEMPTS
)
{
clear
();
clear
();
target
.
prepend
(
"<div class='error'>Could not draw pie with labels contained inside canvas</div>"
);
if
(
typeof
console
===
"object"
&&
typeof
console
.
warn
===
"function"
)
{
console
.
warn
(
"Could not draw pie with labels contained inside canvas"
);
}
}
}
if
(
plot
.
setSeries
&&
plot
.
insertLegend
)
{
if
(
plot
.
setSeries
&&
plot
.
insertLegend
)
{
...
...
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