Dashing problems using Rickshaw with one widget
问题 I'm currently trying to add data types to the x-axis of my graphs in Dashing using the Rickshaw widget. Essentially I want to create data call in the dashboard file that relates to an if statement in the Coffeescript widget Code from coffeescript (Rickshaw.coffee) # Define elements for Rickshaw time time = new Rickshaw.Fixtures.Time months = time.unit('month') weeks = time.unit('week') if @get("weekly-view") x_axis = new Rickshaw.Graph.Axis.Time(graph: graph, timeUnit: weeks) y_axis = new