Skip to content

Commit

Permalink
Reimplemented datatables transformer so that the json is the complete…
Browse files Browse the repository at this point in the history
… json needed for the datatables constructor
  • Loading branch information
twheys committed Aug 23, 2016
1 parent dfc9e4d commit 5ed8ca5
Show file tree
Hide file tree
Showing 8 changed files with 837 additions and 602 deletions.
34 changes: 33 additions & 1 deletion fireant/slicer/transformers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,38 @@
from .base import Transformer, TransformationException
from .datatables import (DataTablesRowIndexTransformer, DataTablesColumnIndexTransformer, CSVRowIndexTransformer,
CSVColumnIndexTransformer)
from .datatables import DataTablesRowIndexTransformer, DataTablesColumnIndexTransformer
from .highcharts import HighchartsLineTransformer, HighchartsColumnTransformer, HighchartsBarTransformer
from .notebook import PlotlyTransformer, PandasTransformer
from .bundles import bundles

notebook_tx = {
'row_index_table': PandasTransformer(),
'column_index_table': PandasTransformer(),
}

try:
from fireant.slicer.transformers.notebook import PlotlyTransformer

notebook_tx['line_chart'] = PlotlyTransformer()
notebook_tx['column_chart'] = PlotlyTransformer()
notebook_tx['bar_chart'] = PlotlyTransformer()

except ImportError:
# Matplotlib not installed
pass

bundles = {
# Unfinished
# 'notebook': notebook_tx,
'highcharts': {
'line_chart': HighchartsLineTransformer(),
'column_chart': HighchartsColumnTransformer(),
'bar_chart': HighchartsBarTransformer(),
},
'datatables': {
'row_index_table': DataTablesRowIndexTransformer(),
'column_index_table': DataTablesColumnIndexTransformer(),
'row_index_csv': CSVRowIndexTransformer(),
'column_index_csv': CSVColumnIndexTransformer(),
},
}
36 changes: 0 additions & 36 deletions fireant/slicer/transformers/bundles.py

This file was deleted.

Loading

0 comments on commit 5ed8ca5

Please sign in to comment.