-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fireant 1.0 Rewrite #151
Fireant 1.0 Rewrite #151
Conversation
1574328
to
f54bcee
Compare
9f10a67
to
f5937cd
Compare
91e4835
to
d13ed5d
Compare
fireant/slicer/widgets/helpers.py
Outdated
:param data_frame: | ||
:return: | ||
""" | ||
dv_by_dimension = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No idea what dv stands for.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will fix
fireant/slicer/widgets/highcharts.py
Outdated
|
||
def _render_y_axis(self, axis_idx, color, references): | ||
""" | ||
Renders the yAxis configuraiton. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a typo in configuraiton
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch, will fix
fireant/slicer/widgets/highcharts.py
Outdated
""" | ||
Renders the xAxis configuraiton. | ||
|
||
https://api.highcharts.com/highcharts/yAxis |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good that you're putting the documentation link for the highcharts elements. That helps a lot when debugging or changing behaviour.
fireant/slicer/widgets/highcharts.py
Outdated
|
||
def _render_x_axis(self, data_frame, dimension_display_values): | ||
""" | ||
Renders the xAxis configuraiton. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a typo in configuraiton
fireant/slicer/widgets/highcharts.py
Outdated
"title": {"text": reference.label}, | ||
"opposite": True, | ||
"labels": {"style": {"color": color}} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those 3 lines seem to be badly indented.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will fix
fireant/slicer/widgets/highcharts.py
Outdated
|
||
def _render_plot_options(self, data_frame): | ||
""" | ||
Renders the plotOptions configuration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing a dot in the end of the sentence. Don't think it's a big deal, but noticed you've put them for all other methods.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will fix. Looks better if it's consistent
…the pandas transformer
…frame that drops the metrics column index level when only a single metric is used. The changed accessor value was incorrect, the dropped metric name index level value is not reflected in the data.
Pandas sort columns
Fixed the replacement of display values on multiindex data frames in …
…y moving the fillna part after the sort
…gh charts transformer would raise an unhandled exception
Added handle for empty sort array in pandas transformer
Fix ReactTable sorting with NaNs
…es_for_highcharts Fixed a case where if a null was returned for a display value, the hi…
Handle invalid column idx in sort
…ame would mix data types, breaking the sort
…sformer when there are no dimensions
Fix fillna in pandas sortdataframe
…orting is not required
Fixed sorting data frames with no dimensions
…oltip to display the percentage total
Highcharts pie chart
…p matplotlib tests if matplotlib is not installed
Matplotlib widget
Rewrite of the entire package
Notable changes:
Still needs doing
Write highcharts transformerAdd tests for highcharts pie chartsWrite pandas transformerWrite csv transformerWrite matplotlib transformerAdd totalsAdd support for basic operations (cumsum, cumavg)Add fix for leap years to YoY reference queriesAdd paginationAdd function for querying dimension optionsAdapt documentation