datopian / datahub-qa

:package: Bugs, issues and suggestions for datahub.io
https://datahub.io/
32 stars 6 forks source link

Ability to add (append) tick suffix to graph axis #133

Closed anuveyatsu closed 6 years ago

anuveyatsu commented 6 years ago

As a Publisher, I want to be able to add a suffix to the graph axis so my numbers are represented correctly. E.g.:

How to reproduce

Expected behavior

anuveyatsu commented 6 years ago

FIXED, see https://datahub.io/anuveyatsu/simple-views and its views property in https://pkgstore.datahub.io/90998f7f90e086bd5fc7c9075dfda43b/simple-views/3/datapackage.json

You can see that I've set ySuffix and xSuffix properties in the views[0].spec, which is then are used as suffixes in the axis ticks of the graph.

P.S. make sure your browser is not caching old assets.

Also added small paragraph about this feature in the docs - http://datahub.io/docs/features/views#how-it-works and here the commit https://github.com/datahq/frontend/commit/cf4958a2d72029f9d1e201f5bf2946713c779e92

AcckiyGerman commented 6 years ago

TESTED