Comments (4)
This should be easy to do. Do you have any interest in trying to add the feature yourself and opening a PR? I can point you at the areas in the code you should look at.
from smag.
This should be easy to do. Do you have any interest in trying to add the feature yourself and opening a PR? I can point you at the areas in the code you should look at.
I haven't worked with Rust much beyond Hello World and a few Project Euler problems, but I'm more than happy to give it a shot.
from smag.
Cool, lets give this a go!
The y-axis bounds are calculated here in DataStore: https://github.com/aantn/smag/blob/main/src/datastore.rs#L72
The command-line arguments are generated automatically from the Args struct here: https://github.com/aantn/smag/blob/main/src/main.rs#L28
I would start by modifying the y-axis bounds function to use a set hardcoded number and make sure that works OK. If it does then add command line arguments by modifying the Args struct. Lastly, you'll have to access the data from the args struct when calculating the y-bounds. You can pass that to DataStore::new here: https://github.com/aantn/smag/blob/main/src/main.rs#L78
from smag.
Awesome, thanks. Will give this a shot tomorrow.
from smag.
Related Issues (11)
- Feature request: adjustable color and width HOT 8
- Feature Request: support multiple values and assign colors to them HOT 1
- Extracting numbers HOT 2
- Cargo.lock needs to be updated but --locked was passed to prevent this HOT 4
- Support for y-axis unit label(s) HOT 1
- Code does not compile on rustc 1.74.0
- Bump version to 0.6.1 HOT 1
- Commit tagged as `v0.7.0` actually has version 0.6.0 in Cargo.toml HOT 1
- More accurate y axis ticks HOT 2
- Behavior of "last" indicator
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smag.