diff --git a/CHANGELOG.md b/CHANGELOG.md index 468c3ebe..02b72774 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - widgets - dropdown: allow resubmitting the same value + - plot: missing `logScaleX` and `logScaleY` properties ## 1.25.7 diff --git a/src/client/widgets/graphs/plot.js b/src/client/widgets/graphs/plot.js index 70183607..e9b5c164 100644 --- a/src/client/widgets/graphs/plot.js +++ b/src/client/widgets/graphs/plot.js @@ -26,6 +26,8 @@ module.exports = class Plot extends StaticProperties(Canvas, {bypass: true, inte class_specific: { rangeX: {type: 'object', value: {min: 0, max: 1}, help: 'Defines the min and max values for the x axis'}, rangeY: {type: 'object', value: {min: 0, max:1}, help: 'Defines the min and max values for the y axis'}, + logScaleX: {type: 'boolean|number', value: false, help: 'Set to `true` to use logarithmic scale for the x axis. Set to `-1` for exponential scale.'}, + logScaleY: {type: 'boolean|number', value: false, help: 'Set to `true` to use logarithmic scale for the y axis. Set to `-1` for exponential scale.'}, origin: {type: 'number|boolean', value: 'auto', help: 'Defines the y axis origin. Set to `false` to disable it'}, }, value: {