mirror of
https://github.com/supabase/supabase.git
synced 2026-05-31 09:52:58 +08:00
add logarithmic option to custom reports (#43001)
https://linear.app/supabase/issue/FE-2595/dashboard-feedback-logarithmic-scale-option-for-custom-report-charts#comment-19c2f27a - adds logarithmic view option to charts <img width="1308" height="866" alt="CleanShot 2026-02-18 at 21 15 56@2x" src="https://github.com/user-attachments/assets/2ed95d0e-ccd0-4cd1-9a3b-ac9ae5628995" />
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { BarChart2, Settings2, Table } from 'lucide-react'
|
||||
|
||||
import { ChartConfig } from 'components/interfaces/SQLEditor/UtilityPanel/ChartConfig'
|
||||
import { BarChart2, Settings2, Table } from 'lucide-react'
|
||||
import {
|
||||
Checkbox_Shadcn_,
|
||||
Label_Shadcn_,
|
||||
@@ -15,6 +14,7 @@ import {
|
||||
ToggleGroup,
|
||||
ToggleGroupItem,
|
||||
} from 'ui'
|
||||
|
||||
import { ButtonTooltip } from '../ButtonTooltip'
|
||||
|
||||
interface BlockViewConfigurationProps {
|
||||
@@ -121,6 +121,19 @@ export const BlockViewConfiguration = ({
|
||||
/>
|
||||
Cumulative
|
||||
</Label_Shadcn_>
|
||||
<Label_Shadcn_ htmlFor="logScale">
|
||||
<Checkbox_Shadcn_
|
||||
id="logScale"
|
||||
checked={chartConfig?.logScale}
|
||||
onClick={() =>
|
||||
updateChartConfig({
|
||||
...chartConfig,
|
||||
logScale: !chartConfig?.logScale,
|
||||
})
|
||||
}
|
||||
/>
|
||||
Log scale
|
||||
</Label_Shadcn_>
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user