Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
c3-closed
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
charts
c3-closed
Commits
af8ba272
Commit
af8ba272
authored
Oct 14, 2015
by
Evgeny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add bgcolor
parent
7faacd55
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
3 deletions
+17
-3
Gruntfile.coffee
Gruntfile.coffee
+2
-2
api.chart.js
src/api.chart.js
+14
-0
axis.js
src/axis.js
+1
-1
No files found.
Gruntfile.coffee
View file @
af8ba272
...
...
@@ -106,7 +106,7 @@ module.exports = (grunt) ->
src
:
'c3.css'
dest
:
'c3.min.css'
grunt
.
registerTask
'default'
,
[
'
jshint'
,
'
concat'
,
'test'
,
'posttest'
]
grunt
.
registerTask
'default'
,
[
'concat'
,
'test'
,
'posttest'
]
grunt
.
registerTask
'test'
,
[
'jasmine'
]
grunt
.
registerTask
'build'
,
[
'
jshint'
,
'
concat'
,
'posttest'
]
grunt
.
registerTask
'build'
,
[
'concat'
,
'posttest'
]
grunt
.
registerTask
'posttest'
,
[
'cssmin'
,
'uglify'
]
src/api.chart.js
View file @
af8ba272
...
...
@@ -43,3 +43,17 @@ c3_chart_fn.destroy = function () {
return
null
;
};
c3_chart_fn
.
bgcolor
=
function
(
value
)
{
var
$$
=
this
.
internal
;
var
svg
=
$$
.
svg
[
0
][
0
];
if
(
!
arguments
.
length
){
if
(
svg
.
style
.
backgroundColor
){
return
svg
.
style
.
backgroundColor
;
}
else
{
return
undefined
;
}
}
else
{
svg
.
style
.
backgroundColor
=
value
;
}
};
src/axis.js
View file @
af8ba272
...
...
@@ -278,7 +278,7 @@ c3_chart_internal_fn.rotateTickText = function (axis, transition, rotate) {
.
attr
(
'dx'
,
this
.
xForRotatedTickText
(
rotate
));
};
c3_chart_internal_fn
.
getMaxTickWidth
=
function
(
id
,
withoutRecompute
)
{
c3_chart_internal_fn
.
getMaxTickWidth
=
function
()
{
return
10
;
};
...
...
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