From e30aebf644987857e22903e8c7aeda69eabd723f Mon Sep 17 00:00:00 2001 From: prabhatdev <38984210+prabhatdev@users.noreply.github.com> Date: Wed, 29 Jul 2020 00:49:00 +0530 Subject: [PATCH] Update make_bar_graph.py --- make_bar_graph.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/make_bar_graph.py b/make_bar_graph.py index d87fa21..bab900e 100644 --- a/make_bar_graph.py +++ b/make_bar_graph.py @@ -3,9 +3,6 @@ import numpy as np import altair as alt import json -alt.data_transformers.enable('data_server_proxied') - - # npm install vega-lite vega-cli canvas @@ -16,7 +13,7 @@ class BarGraph: def build_graph(self): - with open('colors.json') as f: + with open(os.path.join(os.path.dirname(__file__), 'colors.json')) as f: colors = json.load(f) allColorsValues = []