kristoferB / SP

Sequence Planner
MIT License
12 stars 5 forks source link

Google Charts Height and Width Scaling #83

Closed aleastChs closed 7 years ago

aleastChs commented 7 years ago

Right now Google Charts scale really bad with text and number of rows Idea1(ugly but works with several objects on same row??): https://stackoverflow.com/a/23975493

aleastChs commented 7 years ago

this can work, but then you need to filter rows of the same row label

aleastChs commented 7 years ago
googlechartscaling
aleastChs commented 7 years ago

// draw()-method // this calls the Timeline.draw() with the given data and options def draw(): Unit = { // TODO: this can work, but then you need to filter rows of the same row label // Todo: this approach can work, look at SQL-formatting with GoogleVisualization.data.group() // options.setHeight(data.getNumberOfRows() heightPerRow + margin ) timeline.draw( data, OptionsTimeline( this.data.getNumberOfRows() 31 + 40, this.options.width, this.options.timeline, this.options.tooltip, this.options.title, this.options.avoidOverlappingGridLines, this.options.backgroundColor, this.options.colors, this.options.enableInteractivity, this.options.fontName, this.options.fontSize, this.options.forceIFrame ).toDynamic ) }

aleastChs commented 7 years ago

Dynamic Charts is hard to create. Close this for now Customization with Advanced Usage in Google Charts docs