Skip to content
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

Readded buttons and removed unnecessary buttons #1329

Merged
merged 13 commits into from
Nov 28, 2024
Merged
3 changes: 2 additions & 1 deletion src/client/app/components/BarChartComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ export default function BarChartComponent() {
}}
config={{
responsive: true,
displayModeBar: false,
displayModeBar: true,
modeBarButtonsToRemove: ['select2d','lasso2d','autoScale2d','resetScale2d'],
// Current Locale
locale,
// Available Locales
Expand Down
4 changes: 2 additions & 2 deletions src/client/app/components/LineChartComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ export default function LineChartComponent() {
}}
config={{
responsive: true,
displayModeBar: false,
// Current Locale
displayModeBar: true,
modeBarButtonsToRemove: ['select2d','lasso2d','autoScale2d','resetScale2d'], // Current Locale
locale,
// Available Locales
locales: Locales
Expand Down
2 changes: 1 addition & 1 deletion src/client/app/components/RadarChartComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ export default function RadarChartComponent() {
useResizeHandler={true}
config={{
displayModeBar: true,
responsive: true,
modeBarButtonsToRemove: ['select2d','lasso2d','autoScale2d','resetScale2d'], responsive: true,
locales: Locales // makes locales available for use
}}
layout={layout}
Expand Down
3 changes: 2 additions & 1 deletion src/client/app/components/ThreeDComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ export default function ThreeDComponent() {
layout={layout as Plotly.Layout}
config={{
responsive: true,
displayModeBar: false,
displayModeBar: true,
modeBarButtonsToRemove: ['resetCameraDefault3d'],
// Current Locale
locale,
// Available Locales
Expand Down
3 changes: 2 additions & 1 deletion src/client/app/containers/CompareChartContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ function mapStateToProps(state: RootState, ownProps: CompareChartContainerProps)
data: datasets,
layout,
config: {
displayModeBar: false,
displayModeBar: true,
modeBarButtonsToRemove: ['select2d','lasso2d','autoScale2d','resetScale2d'],
locale,
locales: Locales // makes locales available for use
}
Expand Down
Loading