Liking cljdoc? Tell your friends :D

svg-lib.chart.core


append-point-detailscljs

(append-point-details {x-detail :x-detail
                       x-position :x-position
                       x-value-type :x-value-type
                       y-detail :y-detail
                       y-position :y-position
                       y-value-type :y-value-type
                       background-class :background-class
                       selected-language :selected-language}
                      element
                      event)

Append text with details about hovered point

Append text with details about hovered point
sourceraw docstring

axis-segmentcljs

(axis-segment min-value max-value width)

Calculate segments in pixels and round value for every segment

Calculate segments in pixels and round value for every segment
sourceraw docstring

bar-axis-segmentcljs

(bar-axis-segment bar-labels width)

Calculate segments for bars

Calculate segments for bars
sourceraw docstring

bar-min-max-iterate-coordinatescljs

(bar-min-max-iterate-coordinates bar-values axis-min axis-max)

Iterates through bar values

Iterates through bar values
sourceraw docstring

build-bar-chart-clj-mapcljs

(build-bar-chart-clj-map
  {value-type :value-type
   y-minimum :y-minimum
   svg-height :svg-height
   multi-bars :multi-bars
   vertical-grid-lines :vertical-grid-lines
   x-maximum :x-maximum
   y-maximum :y-maximum
   bar-labels :bar-labels
   y-axis-title :y-axis-title
   main-title :main-title
   bar-values :bar-values
   {bar-names :bar-names legend-position :position} :legend
   bar-values-on-x-axis :bar-values-on-x-axis
   svg-width :svg-width
   horizontal-grid-lines :horizontal-grid-lines
   x-axis-title :x-axis-title
   selected-language :selected-language
   x-minimum :x-minimum})

Builds bar chart clojure map of html elements

Builds bar chart clojure map of html elements
sourceraw docstring

build-line-chart-clj-mapcljs

(build-line-chart-clj-map
  {x-value-type :x-value-type
   dot-values :dot-values
   y-minimum :y-minimum
   svg-height :svg-height
   vertical-grid-lines :vertical-grid-lines
   multi-line :multi-line
   x-maximum :x-maximum
   y-maximum :y-maximum
   y-axis-title :y-axis-title
   {line-names :line-names legend-position :position} :legend
   main-title :main-title
   y-value-type :y-value-type
   svg-width :svg-width
   horizontal-grid-lines :horizontal-grid-lines
   x-axis-title :x-axis-title
   selected-language :selected-language
   x-minimum :x-minimum})

Builds line chart clojure map of html elements

Builds line chart clojure map of html elements
sourceraw docstring

build-pie-chart-clj-mapcljs

(build-pie-chart-clj-map {pie-values :pie-values
                          value-type :value-type
                          {bar-names :bar-names legend-position :position}
                            :legend
                          main-title :main-title
                          svg-width :svg-width
                          svg-height :svg-height
                          selected-language :selected-language})

Builds pie chart clojure map of html elements

Builds pie chart clojure map of html elements
sourceraw docstring

calculate-clip-pathcljs

(calculate-clip-path x-start y-start x-end y-end radius)

Calculate clip path for pie chart

Calculate clip path for pie chart
sourceraw docstring

calculate-segment-valuecljs

(calculate-segment-value lower-limit higher-limit)

Calculates segment value

Calculates segment value
sourceraw docstring

find-bar-x-y-min-maxcljs

(find-bar-x-y-min-max bar-values multi-bars bar-values-on-x-axis value-type)

Finds minimum and maximum for bars and sets them for particular axis x or y

Finds minimum and maximum for bars and sets them for particular axis x or y
sourceraw docstring

find-x-y-min-maxcljs

(find-x-y-min-max dot-values & [multi-line])

Finds minimum and maximum of x and y axis

Finds minimum and maximum of x and y axis
sourceraw docstring

format-segment-valuecljs

(format-segment-value segment-value & [segment-value-type selected-language])

Formats segment value 10 -> 10 1000 -> 1K 1000000 -> 1M

Formats segment value
10 -> 10
1000 -> 1K
1000000 -> 1M
sourceraw docstring

generate-barcljs

(generate-bar bar-value
              chart-bars
              bar-values-on-x-axis
              calculate-x-coordinate
              calculate-y-coordinate
              calculate-width
              calculate-height
              itr
              number-of-bars
              value-type
              selected-language)

Generates row of bars and their values

Generates row of bars and their values
sourceraw docstring

generate-barscljs

(generate-bars bar-values
               multi-bars
               bar-values-on-x-axis
               calculate-x-coordinate
               calculate-y-coordinate
               calculate-width
               calculate-height
               value-type
               selected-language)

Generates svg rectangulars as bars

Generates svg rectangulars as bars
sourceraw docstring

generate-pie-slicescljs

(generate-pie-slices pie-values
                     radius
                     cx
                     cy
                     pie-id-num
                     width
                     height
                     value-type
                     selected-language)

Generate pie slices in form of html svg elements

Generate pie slices in form of html svg elements
sourceraw docstring

generate-polylinecljs

(generate-polyline dot-values
                   dots-as-circle
                   calculate-x-coordinate
                   x-left-offset
                   height
                   y-bottom-offset
                   calculate-y-coordinate
                   itr
                   &
                   [x-value-type y-value-type selected-language])

Generates single polyline

Generates single polyline
sourceraw docstring

generate-polylinescljs

(generate-polylines dot-values
                    multi-line
                    calculate-x-coordinate
                    x-left-offset
                    height
                    y-bottom-offset
                    calculate-y-coordinate
                    &
                    [x-value-type y-value-type selected-language])

Generates polylines out of line vectors

Generates polylines out of line vectors
sourceraw docstring

min-max-iterate-coordinatescljs

(min-max-iterate-coordinates dot-values x-min x-max y-min y-max)

Iterates through coordinates

Iterates through coordinates
sourceraw docstring

remove-point-detailscljs

(remove-point-details evt-p element event)

Remove text with details about unhovered point

Remove text with details about unhovered point
sourceraw docstring

render-bar-chartcljs

(render-bar-chart chart-configuration)

Renders bar chart html elements from chart map

Renders bar chart html elements from chart map
sourceraw docstring

render-line-chartcljs

(render-line-chart chart-configuration)

Renders line chart html elements from chart map

Renders line chart html elements from chart map
sourceraw docstring

render-pie-chartcljs

(render-pie-chart chart-configuration)

Renders pie chart html elements from chart map

Renders pie chart html elements from chart map
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close