Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outline color for grid. #244

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion js/DefaultOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Flotr.defaultOptions = {
titleAngle: 270
},
grid: {
color: '#545454', // => primary color used for outline and labels
color: '#545454', // => primary color used for labels
backgroundColor: null, // => null for transparent, else color
backgroundImage: null, // => background image. String or object with src, left and top
watermarkAlpha: 0.4, // =>
Expand All @@ -78,6 +78,7 @@ Flotr.defaultOptions = {
horizontalLines: true, // => whether to show gridlines in horizontal direction
minorHorizontalLines: null, // => whether to show gridlines for minor ticks in horizontal dir.
outlineWidth: 1, // => width of the grid outline/border in pixels
outlineColor: '#545454', // => primary color used for outline
outline : 'nsew', // => walls of the outline to display
circular: false // => if set to true, the grid will be circular, must be used when radars are drawn
},
Expand Down
4 changes: 2 additions & 2 deletions js/plugins/grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ Flotr.addPlugin('graphGrid', {
// Draw axis/grid border.
ctx.beginPath();
ctx.lineWidth = grid.outlineWidth;
ctx.strokeStyle = grid.color;
ctx.strokeStyle = grid.outlineColor;
ctx.lineJoin = 'round';

for(i = 0; i <= sides; ++i){
Expand All @@ -169,7 +169,7 @@ Flotr.addPlugin('graphGrid', {
lineTo = 'lineTo',
moveTo = 'moveTo';
ctx.lineWidth = lw;
ctx.strokeStyle = grid.color;
ctx.strokeStyle = grid.outlineColor;
ctx.lineJoin = 'miter';
ctx.beginPath();
ctx.moveTo(orig, orig);
Expand Down