logo

Warning: The forum is now for consultation only. Please use GitHub Discussions to post any questions or comments.


Welcome Guest ! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
TheStigh  
#1 Posted : Thursday, April 27, 2017 2:31:52 PM(UTC)
TheStigh

Rank: Member

Groups: Registered
Joined: 4/17/2017(UTC)
Posts: 12
Norway

Thanks: 6 times
Hi all,

Even if I know how to do some CSS to fix text, fonts, colors and other layout-stuff[img]null[/img] (made the tables quite more presentable), I'm struggling to get the chart to be left to the corresponding table. Anyone that could be helpful to give me the correct settings to achieve this?

Thx,
Stigh - Norway
epf  
#2 Posted : Monday, May 1, 2017 8:10:06 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
Yes, you can really achieve this using the CSS stuff, but in the standard HTML View template, the Chart <div> is inserted before the table <div>, so you have to edit it...
For a basic report, here is the procedure:
  • In the tree view, select your Model HTML View, then F8 to edit the CSS parameters
  • Select Chart Container CSS, then add display:inline;float:left;
  • Select Data Table Container CSS, then set it to display:inline;float:left;


Finally edit your template:
set [Use custom template] to true, then edit the template text
move the block:
Code:
            @if (page.DataTable != null && page.DataTable.Lines.Count > 0 && page.DataTable.Lines[0].Length > 0 && View.GetBoolValue("show_data_tables"))
            {
              ....
            }


before the block:
Code:
            @if (ReportModel.HasSerie && View.GetBoolValue("show_charts"))
            {


In this case, there is no line break after the data table...if there is enough space.

The best is to play in your browser (F12) in developer mode to understand what CSS you really need.

Edited by user Monday, May 1, 2017 8:11:38 AM(UTC)  | Reason: Not specified

thanks 1 user thanked epf for this useful post.
TheStigh on 5/2/2017(UTC)
TheStigh  
#3 Posted : Tuesday, May 2, 2017 8:11:28 AM(UTC)
TheStigh

Rank: Member

Groups: Registered
Joined: 4/17/2017(UTC)
Posts: 12
Norway

Thanks: 6 times
Originally Posted by: epf Go to Quoted Post
Yes, you can really achieve this using the CSS stuff, but in the standard HTML View template, the Chart <div> is inserted before the table <div>, so you have to edit it...
For a basic report, here is the procedure:
  • In the tree view, select your Model HTML View, then F8 to edit the CSS parameters
  • Select Chart Container CSS, then add display:inline;float:left;
  • Select Data Table Container CSS, then set it to display:inline;float:left;


Finally edit your template:
set [Use custom template] to true, then edit the template text
move the block:
Code:
            @if (page.DataTable != null && page.DataTable.Lines.Count > 0 && page.DataTable.Lines[0].Length > 0 && View.GetBoolValue("show_data_tables"))
            {
              ....
            }


before the block:
Code:
            @if (ReportModel.HasSerie && View.GetBoolValue("show_charts"))
            {


In this case, there is no line break after the data table...if there is enough space.

The best is to play in your browser (F12) in developer mode to understand what CSS you really need.



Thanx, worked great!
Users browsing this topic
Guest (3)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.