This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package de.tdlabs.examples; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.boot.builder.SpringApplicationBuilder; | |
import org.springframework.boot.web.support.SpringBootServletInitializer; | |
@SpringBootApplication | |
public class App extends SpringBootServletInitializer { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// You need to apply this once all the animations are already finished. Otherwise labels will be placed wrongly. | |
d3.selectAll('.nv-multibar .nv-group').each(function(group){ | |
var g = d3.select(this); | |
// Remove previous labels if there is any | |
g.selectAll('text').remove(); | |
g.selectAll('.nv-bar').each(function(bar){ | |
var b = d3.select(this); | |
var barWidth = b.attr('width'); |