Here's an example Apex chart I'm working with in ClojureScript. (defn…
- User
Here's an example Apex chart I'm working with in ClojureScript.
(defn approved-invoice-chart [drafted-amt invoiced-amt] (let [percent (get-percentage invoiced-amt drafted-amt)] [ApexChart {:options (clj->js {:chart {:id "invoice-chart" :toolbar download-option-only} :plotOptions {:radialBar {:hollow {:size "60%"} :dataLabels {:value {:offsetY 154}}}} :title {:text "Approved Invoices" :align "left"} :labels [["Revenue Estimate Total" "" "Actual Revenue Total"]] ; these are styled separately to the values we want to import :subtitle {:text ["" ; total estimated revenue (str "" drafted-amt) "" ; total actual revenue (str "" invoiced-amt)] ; replace with real values later :align "center" :margin 0 :offsetX 0 :offsetY 196 :floating true :style {:fontWeight "bold" :fontSize "14px"}} :colors (colours :orange-dark)}) :series [percent] :type "radialBar" :width 500 :height 400}]))
I want to make a chart to show total amount of cost incurred on jobs, and total amount of cost remaining on jobs. I haven't received any spec about what they should look like. There are already 3 bar charts and 2 radial bar charts on the page.
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.