Repository navigation
Plot line with nominal X axis values (--data-field-x-nominal) - #308
Conversation
|
Geat! Thank you so much @lovromazgon I've updated the docs, and added an example: |
|
Thanks! This will be useful for our benchmarking efforts on Conduit! |
|
Hey @shenwei356, can you tell me approximately when you intend to cut the |
|
are you in hurry? you can also compile from the source: https://bioinf.shenwei.me/csvtk/download/#method-6-compiling-from-source-latest-stabledev-version |
|
Oh no, no need to send me the binaries, locally I can compile it myself of course. I'm asking, because I'd like to include the tool in a CI flow and it would be neat if I wouldn't have to depend on a commit, but rather on a released version. That's a minor issue though, I can live with it, if you wanted to postpone the release and include more features 😉 |

This PR adds support to
csvtk plot lineto plot graphs where X is a nominal value. This can be done by using the flag--data-field-x-nominal.All unique X values are collected, sorted and assigned an index. The corresponding value is also shown in the graph marker instead of the index. This opens up the ability to plot graphs for datasets, where X is a date, as long as it's formatted in a way that is sortable (e.g.
YYYY-MM-DD HH:MM:SS). Related to this issue #179.Example:
File
example.csv:Running command:
Produces:
