image-charts 5.1.0 → 5.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/image-charts.rb +31 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05cec25e58fe97027a0776b78db8592cf39e2636c63d137923107b6ad5337eed
|
4
|
+
data.tar.gz: f4467c88c75e9343856c0fa5e9501555cb4cfcdc33228c6414fba91dc0c52bc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb282866f1295b857b519bcad90c313d4858d9b9adfa54db915f51cd04166607bac8039253ef89549bcad55611f8352e836d5a8c054fce11b337fd543efa57ae
|
7
|
+
data.tar.gz: a812c6c450532a5b0975a5ec34f2a4fd057ee54d2e4f389150ce6735988e42787fde7c01bf0c40c80bac6180dac91b46d28368ef5ac38ea1df23582a92cfa5b6
|
data/image-charts.rb
CHANGED
@@ -175,13 +175,16 @@ class ImageCharts
|
|
175
175
|
_clone 'chxr', value
|
176
176
|
end
|
177
177
|
|
178
|
-
# Some clients like Flowdock/Facebook messenger and so on, needs an URL to ends with a valid image extension file to display the image, use this parameter at the end your URL to support them. Valid values are ".png" and ".gif"
|
178
|
+
# Some clients like Flowdock/Facebook messenger and so on, needs an URL to ends with a valid image extension file to display the image, use this parameter at the end your URL to support them. Valid values are ".png", ".svg" and ".gif".
|
179
|
+
# Only QRCodes and GraphViz support svg output.
|
179
180
|
#
|
180
181
|
# [Reference documentation]{@link https://documentation.image-charts.com/reference/output-format/}
|
181
182
|
# # @example
|
182
183
|
# chart = ImageCharts().chof('.png')
|
184
|
+
# chart = ImageCharts().chof('.svg')
|
185
|
+
# chart = ImageCharts().chof('.gif')
|
183
186
|
# @default '.png'
|
184
|
-
#
|
187
|
+
# Image output format
|
185
188
|
def chof(value)
|
186
189
|
_clone 'chof', value
|
187
190
|
end
|
@@ -225,6 +228,8 @@ class ImageCharts
|
|
225
228
|
# # @example
|
226
229
|
# chart = ImageCharts().chg('1,1')
|
227
230
|
# chart = ImageCharts().chg('0,1,1,5')
|
231
|
+
# chart = ImageCharts().chg('1,1,FF00FF')
|
232
|
+
# chart = ImageCharts().chg('1,1,1,1,CECECE')
|
228
233
|
#
|
229
234
|
# Solid or dotted grid lines
|
230
235
|
def chg(value)
|
@@ -352,6 +357,18 @@ class ImageCharts
|
|
352
357
|
_clone 'chl', value
|
353
358
|
end
|
354
359
|
|
360
|
+
# Position and style of labels on data
|
361
|
+
#
|
362
|
+
# [Reference documentation]{@link https://documentation.image-charts.com/reference/chart-label/#positionning-and-formatting}
|
363
|
+
# # @example
|
364
|
+
# chart = ImageCharts().chlps('align,top|offset,10|color,FF00FF')
|
365
|
+
# chart = ImageCharts().chlps('align,top|offset,10|color,FF00FF')
|
366
|
+
#
|
367
|
+
# Position and style of labels on data
|
368
|
+
def chlps(value)
|
369
|
+
_clone 'chlps', value
|
370
|
+
end
|
371
|
+
|
355
372
|
# chart margins
|
356
373
|
#
|
357
374
|
# [Reference documentation]{@link https://documentation.image-charts.com/reference/chart-margin/}
|
@@ -386,6 +403,18 @@ class ImageCharts
|
|
386
403
|
_clone 'chf', value
|
387
404
|
end
|
388
405
|
|
406
|
+
# Bar corner radius. Display bars with rounded corner.
|
407
|
+
#
|
408
|
+
# [Reference documentation]{@link https://documentation.image-charts.com/bar-charts/#rounded-bar}
|
409
|
+
# # @example
|
410
|
+
# chart = ImageCharts().chbr('5')
|
411
|
+
# chart = ImageCharts().chbr('10')
|
412
|
+
#
|
413
|
+
# Bar corner radius. Display bars with rounded corner.
|
414
|
+
def chbr(value)
|
415
|
+
_clone 'chbr', value
|
416
|
+
end
|
417
|
+
|
389
418
|
# gif configuration
|
390
419
|
#
|
391
420
|
# [Reference documentation]{@link https://documentation.image-charts.com/reference/animation/}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: image-charts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.1
|
4
|
+
version: 5.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francois-Guillaume Ribreau
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|