Skip to content

Commit 1321a2e

Browse files
committed
add open office 2015 style updates
1 parent 9cce768 commit 1321a2e

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

shelly/plotlyjs/static/plotlyjs/src/plotly.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,8 @@ exports.Queue = require('./queue');
6262

6363
// exports d3 used in the bundle
6464
exports.d3 = require('d3');
65+
66+
// custom styling injected via envify/uglifyify
67+
if(process.env.PLOTLY_CUSTOM_STYLE === "open-office-2015") {
68+
require('./styles/open_office_2015')();
69+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
'use strict';
2+
3+
var Plotly = require('../plotly');
4+
5+
module.exports = function updateStyle() {
6+
Plotly.Color.defaults = [
7+
'#CC0000', '#5E6A71', '#BBDDE7', '#55aab2', '#a4b0b7'
8+
];
9+
10+
Plotly.Plots.layoutAttributes.font.family.dflt = '"Overpass", verdana, arial, sans-serif';
11+
12+
Plotly.Plots.fontWeight = 900;
13+
};

0 commit comments

Comments
 (0)