jQuery.template("pictogram-legend",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="pictogram-legend">  <div class="legend-series-holder">   '),typeof seriesLevelOptions!="undefined"&&seriesLevelOptions!=null&&$.each(typeof seriesLevelOptions=="function"?seriesLevelOptions.call($item):seriesLevelOptions,function(n,series){with(this)__.push('    <span class="legend-series" data-series-id="'),typeof series.seriesId!="undefined"&&series.seriesId!=null&&__.push($.encode(typeof series.seriesId=="function"?series.seriesId.call($item):series.seriesId)),__.push('">     <i style="color: #'),typeof series.seriesOptions.color!="undefined"&&series.seriesOptions.color!=null&&__.push($.encode(typeof series.seriesOptions.color=="function"?series.seriesOptions.color.call($item):series.seriesOptions.color)),__.push('" class="fa fa-fw '),typeof series.seriesOptions.icon!="undefined"&&series.seriesOptions.icon!=null&&__.push($.encode(typeof series.seriesOptions.icon=="function"?series.seriesOptions.icon.call($item):series.seriesOptions.icon)),__.push('"><\/i> '),typeof series.seriesId!="undefined"&&series.seriesId!=null&&__.push($.encode(typeof series.seriesId=="function"?series.seriesId.call($item):series.seriesId)),__.push("    <\/span>   ")}),__.push('   <div class="icon-legend">    '),typeof uniqueIcons!="undefined"&&uniqueIcons!=null&&$.each(typeof uniqueIcons=="function"?uniqueIcons.call($item):uniqueIcons,function(i,icon){with(this)__.push('     <i class="fa '),typeof icon!="undefined"&&icon!=null&&__.push($.encode(typeof icon=="function"?icon.call($item):icon)),__.push('"><\/i>'),typeof(i!==uniqueIcons.length-1)!="undefined"&&i!==uniqueIcons.length-1!=null&&(typeof(i!==uniqueIcons.length-1)=="function"?(i!==uniqueIcons.length-1).call($item):i!==uniqueIcons.length-1)&&__.push('<strong class="comma">,<\/strong>'),__.push("    ")}),__.push("    = "),typeof oneIconRepresents!="undefined"&&oneIconRepresents!=null&&__.push($.encode(typeof oneIconRepresents=="function"?oneIconRepresents.call($item):oneIconRepresents)),__.push(" "),typeof unit!="undefined"&&unit!=null&&__.push($.encode(typeof unit=="function"?unit.call($item):unit)),__.push("   <\/div>  <\/div> <\/div>");return __});jQuery.template("pictogram-template",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="pictogram-timepoint-slice">  '),typeof(legend==="top")!="undefined"&&legend==="top"!=null&&(typeof(legend==="top")=="function"?(legend==="top").call($item):legend==="top")&&(__.push("   "),!0&&(__=__.concat($item.nest("pictogram-legend",null))),__.push("  ")),__.push('  <div class="pictogram-scroll">   <div class="pictogram '),typeof(stacking==="column")!="undefined"&&stacking==="column"!=null&&(typeof(stacking==="column")=="function"?(stacking==="column").call($item):stacking==="column")&&__.push("pictogram-column-stacked"),__.push('">    '),typeof sections!="undefined"&&sections!=null&&$.each(typeof sections=="function"?sections.call($item):sections,function(n,section){with(this)__.push('     <div class="pictogram-section" data-section-id="'),typeof section.pointId!="undefined"&&section.pointId!=null&&__.push($.encode(typeof section.pointId=="function"?section.pointId.call($item):section.pointId)),__.push('">      <div class="tick">       '),typeof section.pointId!="undefined"&&section.pointId!=null&&__.push($.encode(typeof section.pointId=="function"?section.pointId.call($item):section.pointId)),__.push("      <\/div>      "),typeof displaySum!="undefined"&&displaySum!=null&&(typeof displaySum=="function"?displaySum.call($item):displaySum)&&(__.push('       <div class="sum">        <div class="value">         '),typeof section.formattedSum!="undefined"&&section.formattedSum!=null&&__.push($.encode(typeof section.formattedSum=="function"?section.formattedSum.call($item):section.formattedSum)),__.push("        <\/div>       <\/div>      ")),__.push('      <div class="series">       '),typeof(stacking==="column")!="undefined"&&stacking==="column"!=null&&(typeof(stacking==="column")=="function"?(stacking==="column").call($item):stacking==="column")?(__.push("        "),typeof section.chunks!="undefined"&&section.chunks!=null&&$.each(typeof section.chunks=="function"?section.chunks.call($item):section.chunks,function(n,chunk){with(this)__.push('         <div class="chunk-column">          '),typeof chunk!="undefined"&&chunk!=null&&$.each(typeof chunk=="function"?chunk.call($item):chunk,function(n,chunkItem){with(this)__.push('           <i class="fa fa-fw '),typeof chunkItem.icon!="undefined"&&chunkItem.icon!=null&&__.push($.encode(typeof chunkItem.icon=="function"?chunkItem.icon.call($item):chunkItem.icon)),__.push('" style="color:'),typeof chunkItem.color!="undefined"&&chunkItem.color!=null&&__.push($.encode(typeof chunkItem.color=="function"?chunkItem.color.call($item):chunkItem.color)),__.push(';"              data-series-id="'),typeof chunkItem.optionsSeriesId!="undefined"&&chunkItem.optionsSeriesId!=null&&__.push($.encode(typeof chunkItem.optionsSeriesId=="function"?chunkItem.optionsSeriesId.call($item):chunkItem.optionsSeriesId)),__.push('"              data-series-data-id="'),typeof chunkItem.seriesDataId!="undefined"&&chunkItem.seriesDataId!=null&&__.push($.encode(typeof chunkItem.seriesDataId=="function"?chunkItem.seriesDataId.call($item):chunkItem.seriesDataId)),__.push('"              data-point-id="'),typeof chunkItem.seriesId!="undefined"&&chunkItem.seriesId!=null&&__.push($.encode(typeof chunkItem.seriesId=="function"?chunkItem.seriesId.call($item):chunkItem.seriesId)),__.push('"              data-member-key="'),typeof chunkItem.memberKey!="undefined"&&chunkItem.memberKey!=null&&__.push($.encode(typeof chunkItem.memberKey=="function"?chunkItem.memberKey.call($item):chunkItem.memberKey)),__.push('"           >           <\/i>          ')}),__.push("         <\/div>        ")}),__.push("       ")):!0&&(__.push("        "),typeof section.allIcons!="undefined"&&section.allIcons!=null&&$.each(typeof section.allIcons=="function"?section.allIcons.call($item):section.allIcons,function(n,tuple){with(this)__.push('         <i class="fa fa-fw '),typeof tuple.icon!="undefined"&&tuple.icon!=null&&__.push($.encode(typeof tuple.icon=="function"?tuple.icon.call($item):tuple.icon)),__.push('" style="color:'),typeof tuple.color!="undefined"&&tuple.color!=null&&__.push($.encode(typeof tuple.color=="function"?tuple.color.call($item):tuple.color)),__.push(';"            data-series-id="'),typeof tuple.optionsSeriesId!="undefined"&&tuple.optionsSeriesId!=null&&__.push($.encode(typeof tuple.optionsSeriesId=="function"?tuple.optionsSeriesId.call($item):tuple.optionsSeriesId)),__.push('"            data-series-data-id="'),typeof tuple.seriesDataId!="undefined"&&tuple.seriesDataId!=null&&__.push($.encode(typeof tuple.seriesDataId=="function"?tuple.seriesDataId.call($item):tuple.seriesDataId)),__.push('"            data-point-id="'),typeof tuple.seriesId!="undefined"&&tuple.seriesId!=null&&__.push($.encode(typeof tuple.seriesId=="function"?tuple.seriesId.call($item):tuple.seriesId)),__.push('"            data-member-key="'),typeof tuple.memberKey!="undefined"&&tuple.memberKey!=null&&__.push($.encode(typeof tuple.memberKey=="function"?tuple.memberKey.call($item):tuple.memberKey)),__.push('"         ><\/i>         '),typeof(stacking==="none"&&tuple.isLastOne)!="undefined"&&(stacking==="none"&&tuple.isLastOne)!=null&&(typeof(stacking==="none"&&tuple.isLastOne)=="function"?(stacking==="none"&&tuple.isLastOne).call($item):stacking==="none"&&tuple.isLastOne)&&__.push("          <br/>         "),__.push("        ")}),__.push("       ")),__.push("      <\/div>     <\/div>    ")}),__.push("   <\/div>  <\/div>  "),typeof(legend==="bottom")!="undefined"&&legend==="bottom"!=null&&(typeof(legend==="bottom")=="function"?(legend==="bottom").call($item):legend==="bottom")&&(__.push("   "),!0&&(__=__.concat($item.nest("pictogram-legend",null))),__.push("  ")),__.push(" <\/div>");return __});jQuery.template("pictogram-tooltip",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="pictogram-tooltip">  <strong>   '),typeof(seriesOptions?seriesOptions.seriesOptions.name:series.name)!="undefined"&&(seriesOptions?seriesOptions.seriesOptions.name:series.name)!=null&&__.push($.encode(typeof(seriesOptions?seriesOptions.seriesOptions.name:series.name)=="function"?(seriesOptions?seriesOptions.seriesOptions.name:series.name).call($item):seriesOptions?seriesOptions.seriesOptions.name:series.name)),__.push("  <\/strong>  <br />  "),typeof point.name!="undefined"&&point.name!=null&&__.push($.encode(typeof point.name=="function"?point.name.call($item):point.name)),__.push("  <br />  "),typeof(precision==="auto")!="undefined"&&precision==="auto"!=null&&(typeof(precision==="auto")=="function"?(precision==="auto").call($item):precision==="auto")?(__.push("   "),typeof Knoema.Utils.abbreviateNumber!="undefined"&&Knoema.Utils.abbreviateNumber!=null&&__.push($.encode(Knoema.Utils.abbreviateNumber(point.y))),__.push("  ")):!0&&(__.push("   "),typeof Knoema.Utils.formatNumber!="undefined"&&Knoema.Utils.formatNumber!=null&&__.push($.encode(Knoema.Utils.formatNumber(point.y,precision))),__.push("  ")),__.push("  "),typeof series.unit!="undefined"&&series.unit!=null&&__.push($.encode(typeof series.unit=="function"?series.unit.call($item):series.unit)),__.push(" <\/div>");return __})