From now, 3.x branch will only include bugfixes, all new features will go to 4.x branch
domainDynamicDimension
not working with x_week subdomainempty
target cells with no data.future
class to future subdomain cellsdestroy()
data
rewind()
method to navigate the calendar back to the starting dategetSVG()
not returning all needed classesdestroy()
methodhighlight()
method to change highlighted date after calendar initializationafterLoadPreviousDomain
callbackjumpTo()
method to scroll the calendar to the specified datesetLegend()
will redraw the legend if some of its settings (cellSize/padding, position, etc ...) were changedlegendColors
setting, to dynamically control the heatmap colorsshowLegend()
and removeLegend()
methodsnext()
and previous()
now takes an argument, to scroll multiple domains at oncelegendOrientation
settingrowLimit
and colLimit
setting to control the number of columns and rows in a domainsetLegend()
now takes a legend threshold array as first argument, and a color array as second argumentnext()
when the new domain's timestamp contains more characterupdate()
after calling next()
or previous()
setLegend()
method to redefine legend thresholdupdate()
method, to update calendar data.considerMissingDataAsZero
option to consider missing value as zerominDate
, startDate
to limit domain navigation beyond certain datesonMaxDomainReached()
and onMinDomainReached()
events, triggered when navigation is hitting the lower/upper domain limitnext()
and previous()
will now always return true
, as long as there is more domain to loadm_x
) beginning at m_0
insted of m_1
dy_x
for the day of the weekday
subdomains displaying garbage when using domain other than month
domainDynamicDimension
to disable dynamic domain width/height (default: true)subDomainTitleFormat
not applying to subDomain with dataonComplete()
event not firing when loading data from a json object in data
optionv3 is a major release, a lot of changes are not backward compatible with v2. See the migration guide for update process.
id
with itemSelector
, and accept any kind of CSS3 selector stringnextSelector
and previousSelector
to attach domain navigation to any DOM Elementtsv
to accepted dataTypegetSVG()
method to export SVG codeafterLoadData
callback, to apply your own conversion function when the API don't return data in the expected formatdataType
property to specify data source format type. Can use json (default), csv or txt.startWeekOnMonday
to choose whether to start the week on Monday or Sundayx_day
subdomain to display days horizontally, grouped by weekcellradius
property to apply rounded corner to subdomain cell[enhancement] More faster tests
See documentation for i18n usage
browsing
property to true
scales
property to scale
uri
property to data
. It can now accepts a file path to a JSON file, directly a JSON object, or a string template.The string template is usually a dynamic url to an API, like
api.com/get?start=xxx&end=yyy
, where xxx and yyy are respectively the first and last date of the calendar. You can use tokens to dynamically insert the calendar first and last date in the url. See documentation for accepted tokens. Example :api?start={{t:start}}&end={{d:end}}
will fetchapi?start=1362006000&end=2013-02-27T23:00:00.000Z
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.