"use strict";!function(){var t={xyz:"hello"},e={};t.renderChart=function(t,a){var r={};if(e[t.type]){if(r=$.extend(!0,r,e[t.type]),r.options=$.extend(!0,r.options,t),"function"==typeof r.validate){var s=r.validate();if(0===s)return}"function"==typeof r.processdata&&r.processdata(),"function"==typeof r.draw&&r.draw(a)}return r},window.chart=t,e.Chart={options:{},processdata:null,draw:null,valdate:null,transform:null},e.Charts=$.extend(!0,{},e.Chart),e.Charts.validate=function(){var t=this.options,e=["HorizontalStackedBar"];return(t.data.Dimension.length<2||t.data.Measure.length<1)&&e.indexOf(t.type)>=0?(d3.select("#chart").append("div").attr("class","HI-Core-Error alert alert-danger").text("There is some problem in the data or the configuration of the chart. Please check."),$.notify({message:"There is some problem in the data or the configuration of the chart. Please check.",icon:"fa fa-exclamation-triangle"},{type:"danger"}),0):1},e.Charts.typemap={PieChart:"Pie",DonutChart:"donut",BarChart:"bar",LineChart:"line",ScatterChart:"scatter",AreaChart:"area",SplineChart:"spline",AreaSplineChart:"area-spline",StepChart:"step",AreaStepChart:"area-step",GaugeChart:"gauge",HIGroupedBar:"bar",HorizontalStackedBar:"bar",PercentageStackedBar:"bar"},e.Charts.transformable=["BarChart","LineChart","AreaChart","ScatterChart","AreaStepChart","SplineChart","StepChart","AreaSplineChart","GaugeChart","HIGroupedBar"],e.Charts.options={type:"BarChart",padding:{},data:{jsondata:{},categorykey:[],valuekeys:[],groupkeys:[[]],axes:{},types:{},selection:{},onclick:function(){},color:function(t){return t},colors:{}},subchart:{show:!1},placeholder:"chart",BarChart:{zerobased:!0},size:{height:null,width:null},labels:!0,empty:{abort:!1},tooltip:{show:!0,grouped:!1},legend:{show:!0},color:{pattern:["#81b8ec","#434348","#90ed7d","#f7a35c","#9498ec","#f15c80","#e7d764","#2b908f","#f45b5b","#91e8e1","#7cb5ec"]},gauge:{label:{format:function(t,e){var a=d3.format(".4s");return a(t)},show:!0},min:1e3,max:1e4},axis:{rotated:!1,x:{localtime:!1,padding:{top:20,bottom:20},label:{text:"",position:"inner-right"},type:"",tick:{rotate:0,fit:!0}},y:{show:!0,inverted:!1,label:{padding:{},text:"",position:""},tick:{format:d3.format(",s")}},y2:{show:!1,min:0,max:1e4,tick:{format:d3.format(",s")}}},point:{show:!0,r:2.5,select:{r:10},focus:{expand:{r:10}}},regions:[],zoom:{enabled:!1,rescale:!0},interaction:{enabled:!0},grid:{focus:{show:!1},x:{show:!1},y:{focus:{show:!1},show:!0}},onresized:function(){this.selectChart.style("max-height","none")},onrendered:function(){}},e.Charts.draw=function(t){function e(t){for(var e=t.Dimension,a=t.Measure,r=t.jsondata,s=[],n=[],o={},i=[],l=[],d=[],c=e.length-1,h=e.length-2,p=a.length-1,u=0;u-1?(this.c3chart.transform(this.typemap[a]),s=this):$.inArray(a,e.C3ArrayCharts.transformable)>-1&&(r.type=a,r.data.serieskey=r.data.categorykey,r.data.valuekey=r.data.valuekeys[0],s=t.renderChart(r)),s},e.C3ArrayCharts=$.extend(!0,{},e.Chart),e.C3ArrayCharts.typemap={AreaChart:"area",BarChart:"bar",LineChart:"line",ScatterChart:"scatter",SplineChart:"spline",StepChart:"step",AreaSplineChart:"area-spline",AreaStepChart:"area-step",PieChart:"pie",DonutChart:"donut",BubbleChart:"bubble"},e.C3ArrayCharts.transformable=["PieChart","DonutChart","BubbleChart"],e.C3ArrayCharts.options={data:{jsondata:{},pairs:{},serieskey:"",serieskeys:[],valuekey:"",onclick:function(){},onmouseover:function(){},onmouseout:function(){},onselected:function(){},onunselected:function(){},colors:{}},placeholder:"chart",donut:{title:" "},pie:{label:{}},tooltip:{show:!0},size:{height:null,width:null},order:"asc",padding:{top:20,right:50,bottom:20,left:50},empty:{abort:!1,label:{text:"hoge"}},legend:{show:!0},selection:{enabled:!0,grouped:!1,multiple:!0},color:{pattern:["#81b8ec","#434348","#90ed7d","#f7a35c","#9498ec","#f15c80","#e7d764","#2b908f","#f45b5b","#91e8e1","#7cb5ec"]},onclick:function(){},onresized:function(){this.selectChart.style("max-height","none")},onrendered:function(){},oninit:function(){}},e.C3ArrayCharts.processdata=function(){var t=this.options,e=[];if("bubble"==this.typemap[t.type])for(var a=0;a-1?(this.c3chart.transform(this.typemap[a]),s=this):$.inArray(a,e.Charts.transformable)>-1&&(r.type=a,r.data.categorykey=r.data.serieskey,r.data.valuekeys=[r.data.valuekey],s=t.renderChart(r)),s},e.C3ArrayCharts.flow=function(t){var e=this.options;this.c3chart.flow({json:t,keys:{x:e.data.categorykey,value:e.data.valuekeys},length:3,duration:1500})},e.PieChart=$.extend(!0,{},e.C3ArrayCharts),e.DonutChart=$.extend(!0,{},e.C3ArrayCharts),e.BubbleChart=$.extend(!0,{},e.C3ArrayCharts),e.BarChart=$.extend(!0,{},e.Charts),e.LineChart=$.extend(!0,{},e.Charts),e.AreaChart=$.extend(!0,{},e.Charts),e.SplineChart=$.extend(!0,{},e.Charts),e.StepChart=$.extend(!0,{},e.Charts),e.AreaSplineChart=$.extend(!0,{},e.Charts),e.AreaStepChart=$.extend(!0,{},e.Charts),e.ScatterChart=$.extend(!0,{},e.Charts),e.HIGroupedBar=$.extend(!0,{},e.Charts),e.HorizontalStackedBar=$.extend(!0,{},e.Charts),e.PercentageStackedBar=$.extend(!0,{},e.Charts),e.GaugeChart=$.extend(!0,{},e.Charts)}(); //# sourceMappingURL=H3.js.map