Image-Charts updates - May 2020
François-Guillaume Ribreau
1 reply
Hello Makers π !
I wanted to share with you some works I've done in the past weeks. It would be awesome if you had some feedback on it and suggestions on what should I do next :)
## Official SDKs
### Any rubyist π out-there?
The official Image-Charts Ruby library https://github.com/image-charts/ruby is there!
```bash
gem install image-charts
```
```ruby
require 'image-charts'
const pie = ImageCharts().cht('p').chd('a:2.5,5,8.3').chs('100x100');
pie.to_url // "https://image-charts.com/chart?chd=a%3A2.5%2C5%2C8.3&chs=600x300&cht=p"
pie.to_file('/path/to/chart.png') // nil
pie.to_data_uri // "data:image/png;base64,iVBORw0KGgo..."
pie.to_blob // binary string
```
Generating charts in Ruby in order to embed them inside emails or reports has never been easier!
### Java βοΈ
Ever wanted to sent image charts from Springboot? The official Java library https://github.com/image-charts/java is here!
```
com.image-charts
image-charts
```
```
import com.image.charts.ImageCharts;
ImageCharts pie = new ImageCharts().cht("p").chd("a:2.5,5,8.3").chs("100x100");
pie.toURL(); // https://image-charts.com/chart?chd=a%3A2.5%2C5%2C8.3&chs=600x300&cht=p
pie.toDataURI(); // data:image/png;base64,iVBORw0KGgo...
pie.toBuffer(); // BufferedImage
```
### Python π
The official Image-Charts Python library https://github.com/image-charts/python is here!
```
pip install image-charts
```
```
from ImageCharts import ImageCharts
pie = ImageCharts().cht('p').chd('a:2.5,5,8.3').chs('100x100')
pie.to_url()) # https://image-charts.com/chart?chd=a%3A2.5%2C5%2C8.3&chs=600x300&cht=p
pie.to_data_uri() # data:image/png;base64,iVBORw0KGgo...
pie.to_binary() # b'\x89PNG\r\n\x1a\n\x00\x00...
```
### π PHP & JavaScript/NodeJS β‘οΈ
Good news! We started to release official libraries for Image-Charts. The first two are JavaScript/NodeJS https://github.com/image-charts/javascript and PHP https://github.com/image-charts/php!
```
npm install image-charts --save
```
```
composer require image-charts/image-charts
```
## 3 improvements to QRCodes: colors, SVG output, no watermark!
We know lot of you use Image-Charts API to generate large numbers of QRCode
https://documentation.image-charts.com/qr-codes/ ) on the fly. We've got 3 news for you:
- π No watermark: everyone can now generates watermark free QRCodes!
- π¨ Customize Background and Foreground colors (https://documentation.image-charts.com/qr-codes/#background-color): black and white is nice but what about other colors? Two new parameters let you customize background color `icqrb=` and foreground color `icqrf=`.
- πͺ SVG Output: until now QRCodes were rendered as `PNG`. We've added support for `SVG` output (https://documentation.image-charts.com/qr-codes/#output-format) as well. Use `chof=.svg` to do so.
What is the next improvement you would you like to see?
## π Generate graphviz chart as png
Graph Viz Charts ( https://documentation.image-charts.com/graph-viz-charts/ ) are the perfect representation to organizational chart, model state machines, and any relation-based chart.
Until now Image-Charts supported only `svg` output and many of our users asked for `png` support for broader compatibility. Starting today, every graphviz chart https://documentation.image-charts.com/graph-viz-charts/#output-format outputs `png` by default.
For those you wish to still use svg output, use the `chof=.svg` parameter. Learn more: https://documentation.image-charts.com/graph-viz-charts/#output-format
## The end. For now :)
What's the next most important thing I should do?
Replies
![Yami San](https://ph-avatars.imgix.net/4947294/original.png?auto=compress&codec=mozjpeg&cs=strip&auto=format&w=36&h=36&fit=crop)
Yami San@yami_san
It is a word-guessing puzzle wordle online game for children of all ages that tests their ability to unscramble words and spell the words correctly.
Share