vegaEXP
vega expressions is a super simple way to turn graph equations into lines for vega!!
vega expressions was made for the original use of my discord bot but later decided to be posted :D
Most Recent Update Notes:
- 0.0.2a => Added random, use
{rand}
in the string to signify random! And opts valuerandLevel
= array [min, max] for random (Default: [0,10]) - 0.0.2 => Added absolute value support ("|#|")
Simple setup
const vegaEXP = ;'2x+3'
And now we have a picture!
./coolimage.png:
Exponent support is here, and we have many more plans like:
- Optimized graph visualization
- Better customizability
Customizing
At the moment customizing isn't very easy! But definitely planned!! If you want to customize the look of your graph you can either:
- Edit ./node_modules/vegaexp/base-template.json
- When making a
new vegaEXP
you can dovegaEXP(EXP, {file: YOUR_OWN_FILE.json})
(Full path). More customization will come soon but for no you need to learn the way vega customizes their visualization in JSON