Skip to content

Commit

Permalink
passing two sets of points as a points_set, including color.
Browse files Browse the repository at this point in the history
  • Loading branch information
stnbu committed Sep 8, 2018
1 parent 9a34b91 commit 6acd979
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion coincharts/views.py
Expand Up @@ -21,11 +21,16 @@ def index(request):
comparison[symbol] = SymbolInfo(symbol)
history_generator = comparison.normalized_history_averages()

eth = comparison['BITSTAMP_SPOT_ETH_USD']

graph = svg_graph.LineGraph(
title='Price history averages',
height=580,
width=1200,
points=history_generator,
points_set=[
svg_graph.Points(eth.normalized_history, color='green'),
svg_graph.Points(history_generator, color='black'),
],
)

context = {
Expand Down

0 comments on commit 6acd979

Please sign in to comment.