WhatisHighcharts? 下载地址 http://www.jb51.net/jiaoben/24363.html
HighchartsisachartinglibrarywritteninpureJavaScript,offeringaneasywayofaddinginteractivechartstoyourwebsiteorwebapplication.Highchartscurrentlysupportsline,spline,area,areaspline,column,bar,pieandscattercharttypes.
Features
ItworksinallmodernbrowsersincludingtheiPhone/iPadandInternetExplorerfromversion6.StandardbrowsersuseSVGforthegraphicsrendering.InInternetExplorergraphicsaredrawnusingVML.
.
Highchartsissolelybasedonnativebrowsertechnologiesanddoesn'trequireclientsidepluginslikeFlashorJava.Furthermoreyoudon'tneedtoinstallanythingonyourserver.NoPHPorASP.NET.HighchartsneedsonlytwoJSfilestorun:Thehighcharts.jscoreandeitherthejQueryortheMooToolsframework.Oneoftheseframeworksismostlikelyalreadyinuseinyourwebpage.
Highchartssupportsline,spline,area,areaspline,column,bar,pieandscattercharttypes.Anyofthesecanbecombinedinonechart.
SettingtheHighchartsconfigurationoptionsrequiresnospecialprogrammingskills.TheoptionsaregiveninaJavaScriptobjectnotationstructure,whichisbasicallyasetofkeysandvaluesconnectedbycolons,separatedbycommasandgroupedbycurlybrackets.
ThroughafullAPIyoucanadd,removeandmodifyseries,axesorpointsatanytimeafterchartcreation.Numerouseventssupplyhooksforprogrammingagainsthechart.IncombinationwithjQuery'sorMooTools'AjaxAPI,thisopensforsolutionslikelivechartsconstantlyupdatingwithvaluesfromtheserver,usersupplieddataandmore.
Sometimesyouwanttocomparevariablesthatarenotthesamescale-forexampletemperatureversusrainfallandairpressure.Highchartsletsyouassignanyaxisforeachseries-oranxaxisifyouwanttocomparedatasetsofdifferentcategories.Eachaxiscanbeplacedtotherightorleft,toporbottomofthechart.Alloptionscanbesetindividually,includingreversing,stylingandposition.
OnhoveringthechartHighchartscandisplayatooltiptextwithinformationoneachpointandseries.Thetooltipfollowsastheusermovesthemouseoverthegraph,andgreateffortshavebeentakentomakeitsticktothenearestpointaswellasmakingiteasytoreadapointthatisbelowanotherpoint.
75%ofallchartswithanXandYaxishaveadate-timeXaxis.ThereforeHighchartisveryintelligentabouttimevalues.Withmillisecondsaxisunits,Highchartsdetermineswheretoplacethetickssothattheyalwaysmarkthestartofthemonthortheweek,midnightandmidday,thefullhouretc.
Withtheexportingmoduleenabled,youruserscanexportthecharttoPNG,JPG,PDForSVGformatattheclickofabutton,orprintthechartdirectlyfromthewebpage.
Byzoominginonachartyoucanexamineanespeciallyinterestingpartofthedatamoreclosely.ZoomingcanbeintheXorYdimension,orboth.
HighchartstakesthedatainaJavaScriptarray,whichcanbedefinedinthelocalconfigurationobject,inaseparatefileorevenonadifferentsite.Furthermore,thedatacanbehandledovertoHighchartsinanyform,andacallbackfunctionusedtoparsethedataintoanarray.
SometimesyouneedtoflipoveryourchartandmaketheXaxisappearvertical,likeforexampleinabarchart.Reversingtheaxis,withthehighestvaluesappearingclosesttoorigo,isalsosupported.
DoyouwanttouseHighchartsforapersonalwebsite,aschoolsiteoranon-profitorganisation?Thenyoudon'tneedtheauthor'spermission,justgoonanduseHighcharts.Forcommercialwebsitesandprojects,seeLicenseandPricingAlltextlabels,includingaxislabels,datalabelsforthepointandaxistitles,canberotatedinanyangle.