Skip to content

Commit

Permalink
add orderby support, fix log on axes
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurnewase authored and michael-s-molina committed Sep 19, 2023
1 parent 15fb7d6 commit adc4848
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ export default function buildQuery(formData: QueryFormData) {
{
...baseQueryObject,
columns,
row_limit: formData.limit,
orderby: baseQueryObject.orderby
? [[baseQueryObject.orderby[0], !baseQueryObject.order_desc]]
: undefined,
},
]);
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,17 @@ const config: ControlPanelConfig = {
['y'],
['adhoc_filters'],
['size'],
['limit', null],
['orderby'],
[
{
name: 'order_desc',
config: {
...sharedControls.order_desc,
visibility: ({ controls }) => Boolean(controls.orderby.value),
},
},
],
['row_limit'],
// emitFilterControl,
],
},
Expand Down Expand Up @@ -164,7 +174,7 @@ const config: ControlPanelConfig = {
],
[
{
name: 'logYAxis',
name: 'logXAxis',
config: {
type: 'CheckboxControl',
label: t('Logarithmic x-axis'),
Expand Down Expand Up @@ -228,7 +238,7 @@ const config: ControlPanelConfig = {
['y_axis_format'],
[
{
name: 'logXAxis',
name: 'logYAxis',
config: {
type: 'CheckboxControl',
label: t('Logarithmic y-axis'),
Expand Down

0 comments on commit adc4848

Please sign in to comment.