Commit 4024b4f7 authored by Philippe Bardou's avatar Philippe Bardou
Browse files

Update stacked bar color

parent e7bb2dd7
......@@ -71,7 +71,7 @@
$("#jvenn-container").jvenn({
series: seriesTable,
displayMode: $("#venn-type").val(),
displayStat: $("#venn-stat").val(),
displayStat: true,
fnClickCallback: function() {
var value = "";
if (this.listnames.length == 1) {
......@@ -114,10 +114,6 @@
updateJvenn();
});
$("#venn-stat").change(function() {
updateJvenn();
});
// first init of the jvenn plugin
updateJvenn();
});
......@@ -230,8 +226,8 @@
<div class="hero-unit">
<h1>Hello venn!</h1>
<p class="bodytext"> Paste up to <strong>six</strong> lists using one row per element, then click
the numbers in the <select id="venn-type" class="input-small" style="width:110px;margin-top:5px"><option value="classic">classic</option><option value="edwards">Edwards'</option></select> venn to see the results.<br/>
Intead of venn general statistic about data are available : <select id="venn-stat" class="input" style="width:150px;margin-top:5px"><option value="gStat">General statistics</option><option value="venn">Venn diagram</option></select>.</p>
the numbers in the <select id="venn-type" class="input-small" style="width:110px;margin-top:5px"><option value="classic">classic</option><option value="edwards">Edwards'</option></select> venn to see the results.
</p>
</div>
<div class="row-fluid">
<div class="span12">
......
......@@ -575,7 +575,7 @@
dataplot[i],
changeOpacity(opts.colors[i], 0.5),
opts.colors[i]);
if(h-dataplot[i]+15 <= h) {
if(h-dataplot[i]+15 <= h-10) {
context.textAlign = 'right';
context.fillStyle = 'white';
context.fillText(data[i], barwidth + 65 + i*barwidth + i*xspacer, ymargin + h-dataplot[i]+15);
......@@ -635,8 +635,8 @@
ymargin + 15,
data2plot[i] - xspacer,
20,
changeOpacity(opts.colors[i], 0.5),
opts.colors[i]);
changeOpacity("rgb(156,106,156)", (1/(i+1.5))),
"rgba(0,0,0,0.5)");
context.textAlign = 'center';
context.fillStyle = 'white';
context.fillText(data2[i], (data2plot[i] - xspacer)/2 + xmargin + xprev, ymargin + 29);
......
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