Permalink
Browse files

passing two sets of points as a `points_set`, including color.

  • Loading branch information...
stnbu committed Sep 8, 2018
1 parent 9a34b91 commit 6acd979d32b825a75c1e9ab7ead314860f400607
Showing with 6 additions and 1 deletion.
  1. +6 −1 coincharts/views.py
@@ -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 = {

0 comments on commit 6acd979

Please sign in to comment.