Setting up “zoomed” event to only fire when actual zoom finishes
When you drag chart’s scrollbar, you will get multiple triggers to zoomed event as the actual chart is zooming in the process. This demo shows how you can use generic JavaScript mousedown and mouseup...
View ArticleUsing Export API functions to dynamically save and load chart annotations
Export plugin offers a way to annotate the charts and maps by adding hand-drawn lines, shapes and text. Using plugin’s annotation API functions getAnnotations() and setAnnotations() you can grab...
View ArticleA JavaScript-based SoundCloud player using amCharts
The post A JavaScript-based SoundCloud player using amCharts appeared first on amCharts.
View ArticleIndividually setting color for pie chart slices
This demo shows how you can use Pie chart’s colorField setting to override automatically-applied colors for individual slices. The post Individually setting color for pie chart slices appeared first on...
View ArticleA home page chart with “3D wall” effect
This demo replicates the “3D line” chart featured on amCharts home page. The “wall” effect is produced by using to separate parallel line graphs with fill between them using fillToGraph setting....
View ArticleBubble chart with SVG icons using XY
This demo shows how you can use XY chart to display bubbles with SVG images in them. The functionality is achieved by having two overlaid graphs: The first one is for displaying bubbles. The second –...
View ArticlePlacing Export menu button outside the chart
If you should want to place the Export button in some container that is outside of the chart itself, you can use Export’s divId setting: "export": { "enabled": true, "divId": "exportdiv" } divId...
View ArticleA simple histogram chart
This demo shows how you can implement a simple Histogram chart using serial column chart type. We are setting chart’s columnWidth property to 1 (one) to make the columns fill the whole width of the...
View ArticlePositioning chart cursor before export
In this demo, we show how to use Export plugin’s beforeCapture method to pre-position chart’s cursor using its showCursorAt() method, so that exported image contains balloons and values in legend....
View ArticleGet Base64 representation of chart image
This demo shows how you can use Export plugin’s API to generate a Base64 snapshot of the chart’s appearance. It’s useful when you want to export the chart for saving on server or showing as in-line...
View ArticleFinding out screen coordinates of a chart data point
This demo shows how you can find out a screen coordinates of each data point, i.e. bullet. To find X coordinate, we are using dateToCoordinate() method on the category axis. If we had a regular...
View ArticleUsing world map to display only European countries
This demo shows how we can use world map to display a map of Europe only. We use zoomLevel, zoomLatitude and zoomLongitude in our data provider to pre-zoom the map to specific position and level....
View ArticleAuto-truncating long value axis labels with ellipsis and hover balloon
In some cases value axis title might be too long to fit. This demo shows how you can make the chart automatically truncate the title with ellipsis to fit actual plot area height, but still display full...
View ArticleOverlapping segments on GANTT chart with rollover effect
This demo shows how GANTT chart with overlapping semi-transparent segments. It also shows how you can use rollOverGraphitem and rollOutGraphItem events to dynamically apply style properties to the...
View ArticleHooking up chart to data feed services
We have many articles and examples here on amcharts.com that deal with theoretical concepts of loading remote data to be shown on charts. This tutorial will differ in such way that it will use the real...
View ArticleSetting order of graphs via config
Normally, the chart displays graphs in the same order as they are defined in chart’s graphs array. This very simply plugin, which uses AmCharts.addInitHandler() call, pre-sorts graphs using their...
View ArticleOHLC chart with buy/sell indicators using trend lines
The post OHLC chart with buy/sell indicators using trend lines appeared first on amCharts.
View ArticleGANTT Chart with a legend
GANTT chart does not support automatically-generated legends. The reason for this is that on most GANTT setups, generating legend for every segment would not make a lot of sense, and it’s fairly...
View ArticleGANTT Chart with a legend
GANTT chart does not support automatically-generated legends. The reason for this is that on most GANTT setups, generating legend for every segment would not make a lot of sense, and it’s fairly...
View ArticleAuto-calculate column color based on value
This demo introduces a small amCharts plugin which can apply column fills based on their value. The plugin uses custom property colorRanges to calculate the color, and optionally variance of the color...
View Article