image-charts 5.0.1 → 5.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/image-charts.rb +53 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65e5986726ffab66117e28d02fcbea41b7f09c57a261e3865efd4783ffa8e1c3
4
- data.tar.gz: aea1e22c02eda5c92a05aaf3264c11c707ae928caa38a8807b29e3d5d3abaf07
3
+ metadata.gz: 2fcde6f1d35f351fd2447e5656f85dc0c6d39f75b744dc47cb1d43b632a40b74
4
+ data.tar.gz: 4149a78318440f4d157529253db503f5b6dcce8475c0a49d4f33f300f505122f
5
5
  SHA512:
6
- metadata.gz: 5ccabdcba36a47496a8e07815e689f67d4d28a922261858d09f361740e3e8cced250ecd6ec3b170af8763674e09271c7a255f2ee054bf23d2c62b4dfe261bffd
7
- data.tar.gz: f51abe91859f621cdd35e4e7582ecc1abf893dcc985412cffa7ed0b60a02a1b854954e64f53d3a69e0fd15c241ccc721a8f61d86d9eacbb2ce068391c17c2fab
6
+ metadata.gz: 4ece46a019ef3abb67308c0ba759b377a5d16f3d04126aa112befcd656664f24f309b43c95e42df9d25bbbdf7c7bd6edefc4692711edf4cac245575b355e5c2b
7
+ data.tar.gz: 57830517d0ba41892713797a2b6025f17a1a04804cab702d1bbdab748a2e1901132940f0cb191efdb4af9f5c49091d3ec1ae1f32388ce2f3df7d76f65bcf8e7b
@@ -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
- # Output fake format
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/}
@@ -480,6 +509,28 @@ class ImageCharts
480
509
  _clone 'icretina', value
481
510
  end
482
511
 
512
+ # Background color for QR Codes
513
+ #
514
+ # [Reference documentation]{@link https://documentation.image-charts.com/qr-codes/#background-color}
515
+ # # @example
516
+ # chart = ImageCharts().icqrb('FFFFFF')
517
+ # @default 'FFFFFF'
518
+ # Background color for QR Codes
519
+ def icqrb(value)
520
+ _clone 'icqrb', value
521
+ end
522
+
523
+ # Foreground color for QR Codes
524
+ #
525
+ # [Reference documentation]{@link https://documentation.image-charts.com/qr-codes/#foreground-color}
526
+ # # @example
527
+ # chart = ImageCharts().icqrf('000000')
528
+ # @default '000000'
529
+ # Foreground color for QR Codes
530
+ def icqrf(value)
531
+ _clone 'icqrf', value
532
+ end
533
+
483
534
 
484
535
  private
485
536
 
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.0.1
4
+ version: 5.4.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-05-25 00:00:00.000000000 Z
11
+ date: 2020-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest