hypirion / clj-xchart

XChart wrapper for Clojure
https://hypirion.github.io/clj-xchart/
Eclipse Public License 1.0
112 stars 6 forks source link

:stroke ignored #14

Open rqcy opened 7 years ago

rqcy commented 7 years ago

I try to plot multiple lines, each with a different stroke (solid, dash-dasah, and dash-dot), but all are plotted solid.

(c/xy-chart
  {"A" {:x (range 10)
        :y (range 10)}
   "B" {:x (range 10)
        :y (range 1 11)}
   "C" {:x (range 10)
        :y (range 2 12)}}

  {:chart {:background-color :white}
   :legend {:position :outside-e}
   :plot {:border-visible? false
          :background-color :white}
   :series [{:color :black :stroke :solid :marker :none}
            {:color :green :stroke :dash-dash :marker :none}
            {:color :red :stroke :dash-dot :marker :none}]
   })

out