Image Charts changelog
Image Charts changelog
image-charts.com

Background Image

Specify an image url to use it as a background for your chart! The URL must be completely encoded in order to be handled and we will take care of the rest! The image will take up all the available space.

/chart.js API

If you wish to use our chart.js api endpoint instead, this feature is available through the backgroundImage plugin:

{
 "options":{
    "plugins":{
        "backgroundImage":{
            "url":"https://i.imgur.com/hCyint9.jpg"
        }
    }
 }
}

/chart API

The usual chart background parameter now supports a new img modifier to specify the encoded image url?

chf=bg,img,<image_url>

Progress bar charts

Progress bar are excellent to show the progress of something associated with your customer, your product or anything else. We have made it really easy to setup. Read more about Progress bar charts in the dedicated documentation page.

chart

Multiple improvements

Localization support

Some charts might be rendered for customers over various location with different currency and localization requirements. iclocale is a query parameter available to specify in what localization the chart should be rendered.

In the example below, check the thousands and decimal number separator as well as the currency position. Same chart parameters. Only iclocale changes.

iclocale=en

english localized chart

iclocale=fr

french localized chart

Learn more in Localization documentation page.

Grid line colors

Grid line colors are now available for line, bar, bubble and radar charts!

chg=20,50,5,5,CECECE

Edit this chart

Rounded bar charts!

Bar charts are good but rounded bar charts are better!

Specify the corner radius with the new chbr parameter.

All types of bar charts are supported from stacked horizontal bar charts to grouped vertical bar charts!

Official C# library is out!

Finally an easy to use chart image generation library for C#!

C-sharp-charting-library.jpg

Package Manager:

PM> Install-Package ImageCharts -Version VERSION

.NET CLI:

dotnet add package ImageCharts --version VERSION

PackageReference:

<PackageReference Include="ImageCharts" Version="5.2.0" />
using ImageChartsLib;

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.toFile('/path/to/chart.png');
pie.toDataURI(); // data:image/png;base64,iVBORw0KGgo...
pie.toBuffer(); // BufferedImage

Check out Image-Charts C# documentation and also the package on NuGet.

3 improvements to QRCodes: colors, SVG output, no watermark!

We know lot of you use Image-Charts API to generate large numbers of QRCode on the fly. We've got 3 news for you:

  • 💎 No watermark: everyone can now generates watermark free QRCodes!
  • 🎨 Customize Background and Foreground colors: black and white is nice but what about other colors? Two new parameters let you customize background color icqrb=<hex_color> and foreground color icqrf=<color>.
  • 🪁 SVG Output: until now QRCodes were rendered as PNG. We've added support for SVG output as well. Use chof=.svg to do so.

What is the next improvement you would you like to see?

🎚 Generate GraphViz chart as png

GraphViz 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 outputs png by default.

For those you wish to still use svg output, use the chof=.svg parameter. Learn more.

Official 💎 Ruby library

Any rubyist 💎 out-there? The official Image-Charts Ruby library is there!

gem install image-charts
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!