blob: b9d3d8523e7260c5034a14ecde037803e3e49c74 [file] [log] [blame]
!function(e){"use strict";var t={version:"3.18.1",pfPaletteColors:{black:"#030303",black100:"#fafafa",black200:"#ededed",black300:"#d1d1d1",black400:"#bbbbbb",black500:"#8b8d8f",black600:"#72767b",black700:"#4d5258",black800:"#393f44",black900:"#292e34",blue:"#0088ce",blue100:"#bee1f4",blue200:"#7dc3e8",blue300:"#39a5dc",blue400:"#0088ce",blue500:"#00659c",blue600:"#004368",blue700:"#002235",gold:"#f0ab00",gold100:"#fbeabc",gold200:"#f9d67a",gold300:"#f5c12e",gold400:"#f0ab00",gold500:"#b58100",gold600:"#795600",gold700:"#3d2c00",orange:"#ec7a08",orange100:"#fbdebf",orange200:"#f7bd7f",orange300:"#f39d3c",orange400:"#ec7a08",orange500:"#b35c00",orange600:"#773d00",orange700:"#3b1f00",lightBlue:"#00b9e4",lightBlue100:"#beedf9",lightBlue200:"#7cdbf3",lightBlue300:"#35caed",lightBlue400:"#00b9e4",lightBlue500:"#008bad",lightBlue600:"#005c73",lightBlue700:"#002d39",green:"#3f9c35",green100:"#cfe7cd",green200:"#9ecf99",green300:"#6ec664",green400:"#3f9c35",green500:"#2d7623",green600:"#1e4f18",green700:"#0f280d",lightGreen:"#92d400",lightGreen100:"#e4f5bc",lightGreen200:"#c8eb79",lightGreen300:"#ace12e",lightGreen400:"#92d400",lightGreen500:"#6ca100",lightGreen600:"#486b00",lightGreen700:"#253600",cyan:"#007a87",cyan100:"#bedee1",cyan200:"#7dbdc3",cyan300:"#3a9ca6",cyan400:"#007a87",cyan500:"#005c66",cyan600:"#003d44",cyan700:"#001f22",purple:"#703fec",purple100:"#c7bfff",purple200:"#a18fff",purple300:"#8461f7",purple400:"#703fec",purple500:"#582fc0",purple600:"#40199a",purple700:"#1f0066",red:"#cc0000",red100:"#cc0000",red200:"#a30000",red300:"#8b0000",red400:"#470000",red500:"#2c0000"},pfSetDonutChartTitle:function(t,n,o){var r=e.d3.select(t).select("text.c3-chart-arcs-title");r.text(""),r.insert("tspan").text(n).classed("donut-title-big-pf",!0).attr("dy",0).attr("x",0),r.insert("tspan").text(o).classed("donut-title-small-pf",!0).attr("dy",20).attr("x",0)},pfDonutTooltipContents:function(e,t,n,o){return'<table class="c3-tooltip"> <tr> <td><span style="background-color:'+o(e[0].id)+'"></span><strong>'+e[0].value+"</strong> "+e[0].name+"</td> <td>"+Math.round(1e3*e[0].ratio)/10+"%</td> </tr></table>"},pfGetUtilizationDonutTooltipContentsFn:function(e){return function(t){return'<span class="donut-tooltip-pf" style="white-space: nowrap;">'+Math.round(1e3*t[0].ratio)/10+"% "+e+" "+t[0].name+"</span>"}},pfGetBarChartTooltipContentsFn:function(e){return function(t){return'<table class="c3-tooltip"> <tr> <td><strong>'+(e?e[t[0].index]:t[0].index)+":</td> <td>"+t[0].value+"</td> </tr></table>"}},pfSingleLineChartTooltipContentsFn:function(e){return function(t){return'<table class="c3-tooltip"> <tr> <td><strong>'+(e?e[t[0].index]:t[0].index)+":</td> <td>"+t[0].value+"</td> </tr></table>"}},pfPieTooltipContents:function(e,n,o,r){return t.pfDonutTooltipContents(e,n,o,r)},c3ChartDefaults:function(){var e=function(){return{pattern:[t.pfPaletteColors.blue,t.pfPaletteColors.blue300,t.pfPaletteColors.green,t.pfPaletteColors.orange,t.pfPaletteColors.red]}},n=function(){return{contents:$().pfGetBarChartTooltipContentsFn()}},o=function(){return{contents:$().pfGetBarChartTooltipContentsFn()}};return{getDefaultColors:e,getDefaultBarGrid:function(){return{y:{show:!0}}},getDefaultBarTooltip:function(e){return{contents:t.pfGetBarChartTooltipContentsFn(e)}},getDefaultBarLegend:function(){return{show:!1}},getDefaultBarConfig:function(e){return{color:this.getDefaultColors(),grid:this.getDefaultBarGrid(),tooltip:this.getDefaultBarTooltip(e),legend:this.getDefaultBarLegend()}},getDefaultGroupedBarGrid:function(){return{y:{show:!0}}},getDefaultGroupedBarLegend:function(){return{show:!0,position:"bottom"}},getDefaultGroupedBarConfig:function(){return{color:this.getDefaultColors(),grid:this.getDefaultGroupedBarGrid(),legend:this.getDefaultGroupedBarLegend()}},getDefaultStackedBarGrid:function(){return{y:{show:!0}}},getDefaultStackedBarLegend:function(){return{show:!0,position:"bottom"}},getDefaultStackedBarConfig:function(){return{color:this.getDefaultColors(),grid:this.getDefaultStackedBarGrid(),legend:this.getDefaultStackedBarLegend()}},getDefaultDonut:function(e){return{title:e,label:{show:!1},width:11}},getDefaultDonutSize:function(){return{height:171}},getDefaultDonutColors:function(){return{pattern:[t.pfPaletteColors.blue,t.pfPaletteColors.black300]}},getDefaultDonutTooltip:function(){return{show:!1}},getDefaultDonutLegend:function(){return{show:!1}},getDefaultDonutConfig:function(e){return{donut:this.getDefaultDonut(e),size:this.getDefaultDonutSize(),legend:this.getDefaultDonutLegend(),color:this.getDefaultDonutColors(),tooltip:this.getDefaultDonutTooltip()}},getDefaultPie:function(){return{expand:!0,label:{show:!1}}},getDefaultPieSize:function(){return{height:171}},getDefaultPieColors:function(){return{pattern:[t.pfPaletteColors.blue,t.pfPaletteColors.black300]}},getDefaultPieTooltip:function(){return{contents:$().pfPieTooltipContents}},getDefaultPieLegend:function(){return{show:!1}},getDefaultPieConfig:function(){return{pie:this.getDefaultPie(),size:this.getDefaultPieSize(),legend:this.getDefaultPieLegend(),color:this.getDefaultPieColors(),tooltip:this.getDefaultPieTooltip()}},getDefaultSparklineArea:function(){return{zerobased:!0}},getDefaultSparklineSize:function(){return{height:60}},getDefaultSparklineAxis:function(){return{x:{show:!1},y:{show:!1}}},getDefaultSparklineLegend:function(){return{show:!1}},getDefaultSparklinePoint:function(){return{r:1,focus:{expand:{r:4}}}},getDefaultSparklineTooltip:function(){return{contents:function(e){return'<span class="c3-tooltip-sparkline">'+e[0].value+" "+e[0].name+"</span>"}}},getDefaultSparklineConfig:function(){return{area:{zerobased:!0},size:{height:60},axis:{x:{show:!1},y:{show:!1}},color:e(),legend:{show:!1},point:{r:1,focus:{expand:{r:4}}},tooltip:{contents:function(e){return'<span class="c3-tooltip-sparkline">'+e[0].value+" "+e[0].name+"</span>"}}}},getDefaultLineAxis:function(){return{x:{show:!0},y:{show:!0}}},getDefaultLineGrid:function(){return{x:{show:!1},y:{show:!0}}},getDefaultLineLegend:function(){return{show:!0}},getDefaultLinePoint:function(){return{r:3,focus:{expand:{r:5}}}},getDefaultLineConfig:function(){return{axis:{x:{show:!0},y:{show:!0}},grid:{x:{show:!1},y:{show:!0}},color:e(),legend:{show:!0},point:{r:3,focus:{expand:{r:5}}}}},getDefaultSingleLineTooltip:n,getDefaultSingleLineConfig:function(){return{axis:{x:{show:!0},y:{show:!0}},grid:{x:{show:!1},y:{show:!0}},color:e(),legend:{show:!1},point:{r:3,focus:{expand:{r:5}}},tooltip:n()}},getDefaultAreaAxis:function(){return{x:{show:!0},y:{show:!0}}},getDefaultAreaGrid:function(){return{x:{show:!1},y:{show:!0}}},getDefaultAreaLegend:function(){return{show:!0}},getDefaultAreaPoint:function(){return{r:3,focus:{expand:{r:5}}}},getDefaultAreaConfig:function(){return{axis:{x:{show:!0},y:{show:!0}},grid:{x:{show:!1},y:{show:!0}},color:e(),legend:{show:!0},point:{r:3,focus:{expand:{r:5}}}}},getDefaultSingleAreaTooltip:o,getDefaultSingleAreaConfig:function(){return{axis:{x:{show:!0},y:{show:!0}},grid:{x:{show:!1},y:{show:!0}},color:e(),legend:{show:!1},point:{r:3,focus:{expand:{r:5}}},tooltip:o()}}}},pfBreakpoints:{tablet:768,desktop:1200}};e.patternfly=t}(window);