+91 90691 39140 | +1 253 214 3115 | info@hub4tech.com | hub4tech

SVG Interview Questions and Answers

What is SVG?

SVG stands for Scalable Vector Graphics.

  • SVG is used to describe 2D graphics in XML.
  • SVG renders shapes and images apart from text.
  • The images and text can be animated.
  • Images are made more and more interactive with SVG.
Explain how D3.js selects method?

D3.js select method uses CSS3 selectors to choose DOM elements. D3 looks at the document and choose the first descendant DOM element that consists the tag body. Once the element is selected, D3.js enables you to implement operators to the element selected.

Mention what are the slider available in d3.js?

The slider available in d3.js are

  • Default slider
  • Slider with start value
  • Slider with slide event
  • Slider with slide event
  • Slider with custom axis
  • Slider with min, max, and step values
  • Vertical Slider
How to perform embed SVG in HTML?

SVG files are embedded into HTML documents by using , and tags.

  • The tag is supported for all major browsers.
  • The tag supports scripting.
  • Adobe SVG view recommends to use the EMBED tag while embedding in HTML page.
  • Note that the tag name is capitalized.
  • Following is an example for tag:

< embed src="rectangle.svg" height="100" width="300" type="image/svg+xml" pluginspage="http://www.adobe.com/svg/viewer/install/" >

Explain what is Domain in d3.js?

In d3.js, domain is the start and end of your dataset. It can be any kind of value that can be compared in JavaScript. Domains have to change if your dataset changes

Copyright ©2015 Hub4Tech.com, All Rights Reserved. Hub4Tech™ is registered trademark of Hub4tech Portal Services Pvt. Ltd.
All trademarks and logos appearing on this website are the property of their respective owners.