Skip to content

Commit

Permalink
Hot fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
will7200 committed Apr 14, 2017
1 parent 1a9f099 commit 8daa57f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
12 changes: 4 additions & 8 deletions superset/assets/visualizations/big_number.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,9 @@ function bigNumberVis(slice, payload) {
let y = height / 2;
let g = svg.append('g');

const formattedNumber = f(v);

const formattedNumber = isNaN(f(v)) ? v : f(v);
// Printing big number
let bigNumberFontSize = (width / formattedNumber.length) * 1.3;
if (formattedNumber.length === 1) {
bigNumberFontSize = (width / 2) * 1.3;
}
let bigNumberFontSize = (height / 16) * 6;
g.append('g')
.attr('class', 'digits')
.attr('opacity', 1)
Expand All @@ -98,10 +94,10 @@ function bigNumberVis(slice, payload) {

// Printing big number subheader text
if (json.subheader) {
const fontSize = (width / json.subheader.length) * 1.5;
const fontSize = (height / 16) * 2;
g.append('text')
.attr('x', width / 2)
.attr('y', (height / 16) * 12)
.attr('y', (height / 16) * 14)
.text(json.subheader)
.attr('id', 'subheader_text')
.attr('font-family', 'Roboto')
Expand Down
5 changes: 3 additions & 2 deletions superset/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
SUPERSET_CELERY_WORKERS = 32

SUPERSET_WEBSERVER_ADDRESS = '0.0.0.0'
SUPERSET_WEBSERVER_PORT = 8088
SUPERSET_WEBSERVER_PORT = 8089
SUPERSET_WEBSERVER_TIMEOUT = 60
EMAIL_NOTIFICATIONS = False
CUSTOM_SECURITY_MANAGER = None
Expand All @@ -46,7 +46,8 @@
SECRET_KEY = '\2\1thisismyscretkey\1\2\e\y\y\h' # noqa

# The SQLAlchemy connection string.
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(DATA_DIR, 'superset.db')
SQLALCHEMY_DATABASE_URI = 'sqlite:////home/william/.superset/superset.db'
#SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(DATA_DIR, 'superset.db')
# SQLALCHEMY_DATABASE_URI = 'mysql://myapp@localhost/myapp'
# SQLALCHEMY_DATABASE_URI = 'postgresql://root:password@localhost/myapp'

Expand Down
2 changes: 1 addition & 1 deletion superset/templates/superset/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<link rel="stylesheet" type="text/css" href="/static/assets/stylesheets/superset.css" />
<link rel="stylesheet" type="text/css" href="/static/appbuilder/css/flags/flags16.css" />
<link rel="icon" type="image/png" href="/static/assets/images/favicon.png">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css" />
<link rel="stylesheet" type="text/css" href="/static/assets/node_modules/slick-carousel/slick/slick-theme.css" />
{% endblock %}
{% block head_js %}
{% with filename="css-theme" %}
Expand Down

0 comments on commit 8daa57f

Please sign in to comment.