theRAPTLab / gsgo

GEM-STEP Foundation repo migrated from GitLab June 2023
1 stars 1 forks source link

Set Graph Min and Max - [merged] #732

Closed benloh closed 1 year ago

benloh commented 2 years ago

Merges dev-bl/graph-minmax -> dev-next

This adds a few features to the Graphing feature line graph widget.

To Use

To set the graph minimum and maximum values, use the Graphing feature props graphMin and graphMax. e.g.

addFeature Graphing
addProp energyLevel number 50
featProp Graphing graphProp setTo 'energyLevel'
featProp Graphing graphMinY setTo 0
featProp Graphing graphMaxY setTo 100

...will generate a graph with a maximum of 100, and a point starting at 50.

If graphMinY or graphMaxY are not set, the system will automatically fit the graph values onto the graph, calculating the bounds dynamically.

NOTES:

TO DO

benloh commented 2 years ago

requested review from @jdanish

benloh commented 2 years ago

@jdanish I think this works, but we can keep it on a separate branch for now in case it doesn't. Note that you'll have to remove the axis labels you inserted in the blueprints.

benloh commented 2 years ago

added 1 commit

Compare with previous version

benloh commented 2 years ago

added 1 commit

Compare with previous version

benloh commented 2 years ago

marked this merge request as draft

benloh commented 2 years ago

added 1 commit

Compare with previous version

benloh commented 2 years ago

In GitLab by @jdanish on Oct 2, 2022, 06:01

I'm using this and it seems good. Also note I committed updated help with the min / max x and y values.

benloh commented 2 years ago

marked this merge request as ready

benloh commented 2 years ago

mentioned in commit fe8f33dd5b7dcb5ed066221082418c9fc29dc188

benloh commented 2 years ago

marked the checklist item When merging, add to Graphing wiki documentation as completed