<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@page import="java.util.*" %> <%@page import="fusioncharts.FusionCharts" %> FusionCharts | Customizing tooltip

Customizing tooltip

Go Back
<% String jsonData = "{ \"chart\": { \"caption\": \"Top 3 Electronic Brands in Top 3 Revenue Earning States\", \"subcaption\": \"Last month\", \"aligncaptiontocanvas\": \"0\", \"yaxisname\": \"Statewise Sales (in %)\", \"xaxisname\": \"Brand\", \"numberprefix\": \"$\", \"showxaxispercentvalues\": \"1\", \"showsum\": \"1\", \"showPlotBorder\": \"1\",\"plottooltext\": \"
$label :
{br}State: $seriesName{br}Sales : $dataValue{br}Market share in State : $percentValue{br}Overall market share of $label: $xAxisPercentValue\", \"theme\": \"fusion\" }, \"categories\": [ { \"category\": [ { \"label\": \"Bose\" }, { \"label\": \"Dell\" }, { \"label\": \"Apple\" } ] } ], \"dataset\": [ { \"seriesname\": \"California\", \"data\": [ { \"value\": \"335000\" }, { \"value\": \"225100\" }, { \"value\": \"164200\" } ] }, { \"seriesname\": \"Washington\", \"data\": [ { \"value\": \"215000\" }, { \"value\": \"198000\" }, { \"value\": \"120000\" } ] }, { \"seriesname\": \"Nevada\", \"data\": [ { \"value\": \"298000\" }, { \"value\": \"109300\" }, { \"value\": \"153600\" } ] } ] }"; FusionCharts marimekko = new FusionCharts( "marimekko", "marimekko_chart", "700", "400", "chartContainer", "json", jsonData ); %> <%=marimekko.render()%>