Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
人力車(http://code.shutterstock.com/rickshaw/)を使用していて、グラフの軸の1つに数値ではなく文字列を配置したいと考えています。それは可能ですか?もしそうなら、どのように?
独自のフォーマッタを定義して使用できます
Rickshaw.Fixtures.Number.myFormat = (y) -> if (y == val) return 'somestring'; else return ''some other string';
これを次のように使用します。
yAxis = new Rickshaw.Graph.Axis.Y graph: graph tickFormat: Rickshaw.Fixtures.Number.myFormat graph.render()