We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Base tag breaks diagram's gridlines

Thread ID:

Created:

Updated:

Platform:

Replies:

124323 May 31,2016 08:29 PM UTC Jun 6,2016 10:49 AM UTC JavaScript 3
loading
Tags: ejDiagram
Gabriel Axel
Asked On May 31, 2016 08:29 PM UTC

Greetings,

Adding <base rel='nofollow' href="/"> to the HTML causes the diagram's gridlines not to appear. The cause of the problem is that the base tag applies to SVG references which are used to reference the gridlines pattern (full description and workaround here: https://github.com/meanjs/mean/issues/1224 )

I applied the workaround by changing the reference to include the current full path so that the base tag would not apply to it. For example, if the diagram's ID is "diagram", the following code makes the gridlines appear:

$('#diagram_canvaspattern_gridline').attr('fill', `url(${location.pathname}${location.search}#diagram_canvaspattern_grid)`);

I propose adding the location pathname and search to the fill attribute url as part of the diagram building code to have it working out of the box when base tag is present.

Shyam G [Syncfusion]
Replied On June 2, 2016 04:57 AM UTC

Hi Gabriel, 

Sorry for the delay. 

If we use base tag in the SVG, it will override all the relative URL in the page. So please confirm us why you are using base tag in your application, so that we can provide an alternate solution to you. please refer to the below link in which they have said to avoid the base tag. 


Regards, 
Shyam G 


Gabriel Axel
Replied On June 3, 2016 08:12 PM UTC

Hi Shyam,

I configured my development server so that I would not need to set the base tag, so no problem anymore.

Thanks,

Gabi

Kameshwaran R [Syncfusion]
Replied On June 6, 2016 10:49 AM UTC

Hi Gabriel, 
Thenks for the update. 
please let me know if any further clarification on this. 
Regards, 
Kameshwaran R. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;