Commit a26ab6cf authored by Dmitry's avatar Dmitry

Fix bug with markers for non line-m charts

parent 78461b6c
...@@ -3501,11 +3501,12 @@ ...@@ -3501,11 +3501,12 @@
var $$ = this; var $$ = this;
if(!$$.config.marker_types || !$$.config.marker_types[d.id]){ if(!$$.config.marker_types || !$$.config.marker_types[d.id]){
return marker_fn.circle($$.pointR(d, i)); return marker_fn.circle($$.pointR(d, i)).node();
} }
return marker_fn[$$.config.marker_types[d.id]]($$.pointR(d, i), $$.color(d, i)).node(); return marker_fn[$$.config.marker_types[d.id]]($$.pointR(d, i), $$.color(d, i)).node();
}; };
c3_chart_internal_fn.initBar = function () { c3_chart_internal_fn.initBar = function () {
var $$ = this; var $$ = this;
$$.main.select('.' + CLASS.chart).append("g") $$.main.select('.' + CLASS.chart).append("g")
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -56,8 +56,8 @@ c3_chart_internal_fn.getMarker = function(d, i){ ...@@ -56,8 +56,8 @@ c3_chart_internal_fn.getMarker = function(d, i){
var $$ = this; var $$ = this;
if(!$$.config.marker_types || !$$.config.marker_types[d.id]){ if(!$$.config.marker_types || !$$.config.marker_types[d.id]){
return marker_fn.circle($$.pointR(d, i)); return marker_fn.circle($$.pointR(d, i)).node();
} }
return marker_fn[$$.config.marker_types[d.id]]($$.pointR(d, i), $$.color(d, i)).node(); return marker_fn[$$.config.marker_types[d.id]]($$.pointR(d, i), $$.color(d, i)).node();
}; };
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment