Browse Source

Show point as default

pull/1/head
Masayuki Tanaka 11 years ago
parent
commit
5dc3ea2117
  1. 2
      c3.js
  2. 2
      c3.min.js

2
c3.js

@ -88,7 +88,7 @@
__grid_y_lines = getConfig(['grid','y','lines'], null);
// point - point of each data
var __point_show = getConfig(['point','show'], false),
var __point_show = getConfig(['point','show'], true),
__point_r = __point_show ? getConfig(['point','r'], 2.5) : 0,
__point_focus_line_enabled = getConfig(['point','focus','line','enabled'], true),
__point_focus_expand_enabled = getConfig(['point','focus','expand','enabled'], true),

2
c3.min.js vendored

@ -37,7 +37,7 @@ function(){d3.selectAll(".legend-item").transition().duration(100).style("opacit
-200).attr("y",function(){return ca/2});wa.selectAll("rect.legend-item-event").data(b).transition().attr("x",function(a,b){return d+va*b});wa.selectAll("rect.legend-item-tile").data(b).transition().attr("x",function(a,b){return d+va*b});wa.selectAll("text").data(b).transition().attr("x",function(a,b){return d+va*b+14})}function xa(a){return j(a)?".target-"+a:".target"}var h={data:{}},Ea={},V="_expanded_",W="_selected_",Za="_included_";if(!("bindto"in u))throw Error("bindto is required in config");
var cc=c(["size","width"],640),Ia=c(["size","height"],280);if(!("data"in u))throw Error("data is required in config");var Ca=c(["data","x"],"x"),dc=c(["data","x_format"],"%Y-%m-%d"),Tb=c(["data","id_converter"],function(a){return a}),pa=c(["data","names"],{}),q=c(["data","groups"],[]),gb=c(["data","axes"],{}),$=c(["data","types"],{}),yb=c(["data","regions"],{}),zb=c(["data","colors"],{}),U=c(["data","selection","enabled"],!1),aa=c(["data","selection","grouped"],!1),ba=c(["data","selection","isselectable"],
function(){return!0}),ra=c(["subchart","show"],!1),Ab=ra?c(["subchart","size","height"],60):0,ab=c(["subchart","default"],null),Bb=c(["color","pattern"],null),ta=c(["legend","show"],!0),va=c(["legend","item","width"],80),bc=c(["legend","item","onclick"],function(){}),Cb=c(["axis","x","type"],"indexed"),Ja=c(["axis","x","categories"],[]),Db=c(["axis","x","tick","centered"],!1),Pb=c(["axis","y","max"],null),Nb=c(["axis","y","min"],null),Rb=c(["axis","y","center"],null),$b=c(["axis","y","text"],null);
c(["axis","y","rescale"],!0);var sb=c(["axis","y2","show"],!1),Ob=c(["axis","y2","max"],null),Mb=c(["axis","y2","min"],null),Qb=c(["axis","y2","center"],null);c(["axis","y2","text"],null);c(["axis","y2","rescale"],!0);var e=c(["axis","rotated"],!1),ob=c(["grid","x","show"],!1),ac=c(["grid","x","type"],"tick"),Va=c(["grid","x","lines"],null),pb=c(["grid","y","show"],!1);c(["grid","y","type"],"tick");var Wa=c(["grid","y","lines"],null),Xa=c(["point","show"],!1)?c(["point","r"],2.5):0,Xb=c(["point",
c(["axis","y","rescale"],!0);var sb=c(["axis","y2","show"],!1),Ob=c(["axis","y2","max"],null),Mb=c(["axis","y2","min"],null),Qb=c(["axis","y2","center"],null);c(["axis","y2","text"],null);c(["axis","y2","rescale"],!0);var e=c(["axis","rotated"],!1),ob=c(["grid","x","show"],!1),ac=c(["grid","x","type"],"tick"),Va=c(["grid","x","lines"],null),pb=c(["grid","y","show"],!1);c(["grid","y","type"],"tick");var Wa=c(["grid","y","lines"],null),Xa=c(["point","show"],!0)?c(["point","r"],2.5):0,Xb=c(["point",
"focus","line","enabled"],!0),qb=c(["point","focus","expand","enabled"],!0),rb=c(["point","focus","expand","r"],qb?4:Xa),oa=c(["point","focus","select","r"],8),Zb=c(["point","onclick"],function(){}),Ub=c(["point","onselected"],function(){}),Vb=c(["point","onunselected"],function(){}),G=c(["regions"],[]),Yb=c(["tooltip","contents"],function(a){var b="<table class='-tooltip'><tr><th colspan='2'>"+(ga?a[0].x.getFullYear()+"."+(a[0].x.getMonth()+1)+"."+a[0].x.getDate():ya?a[0].x<Ja.length?Ja[a[0].x]:
a[0].x:a[0].x)+"</th></tr>",d,c,e;for(d=0;d<a.length;d++)j(a[d])?(c=j(a[d].value)?(Math.round(100*a[d].value)/100).toFixed(2):"-",e=a[d].name):e=c="-",b+="<tr><td><span style='background-color:"+N(a[d].id)+"'></span>"+e+"</td><td class='value'>"+c+"</td></tr>";return b+"</table>"}),Eb=u.bindto.replace("#","")+"-clip",Fa="url(#"+Eb+")",ga="timeseries"===Cb,ya="categorized"===Cb,Ya=null,Ga=!1,ca=ta?40:0,Fb,cb=[[d3.time.format("%Y/%-m/%-d"),function(){return!0}],[d3.time.format("%-m/%-d"),function(a){return a.getMonth()}],
[d3.time.format("%-m/%-d"),function(a){return 1!=a.getDate()}],[d3.time.format("%-m/%-d"),function(a){return a.getDay()&&1!=a.getDate()}],[d3.time.format("%I %p"),function(a){return a.getHours()}],[d3.time.format("%I:%M"),function(a){return a.getMinutes()}],[d3.time.format(":%S"),function(a){return a.getSeconds()}],[d3.time.format(".%L"),function(a){return a.getMilliseconds()}]];Fb=function(a){for(var b=cb.length-1,d=cb[b];!d[1](a);)d=cb[--b];return d[0](a)};var m={top:0,right:sb&&!e?50:1,bottom:20+

Loading…
Cancel
Save