Questions tagged as 'svg'

1
answer

SVG graph, with embedded javascript, I use getElementById () does not work correctly in IE11

I want to modify or see some values when I focus on an element of an SVG drawing. This works correctly in Chrome and Firefox. But when using IE11, it does not work. What could be the cause? Are there some JS libraries that resolve these incompat...
asked by 03.09.2017 / 01:32
1
answer

Show square added within HTML svg?

I want that by clicking inside the gray square, I draw a square of 10px x 10px in the place I clicked, I add the element inside the SVG, but it does not draw it. <!DOCTYPE html> <html lang="en"> <head> <meta charset="U...
asked by 14.06.2018 / 04:23
1
answer

Incorporate svg in android

I have an arrangement like this: ImageView img0; int [] f1={R.drawable.ic_butterfly, R.drawable.ic_butterfly, R.drawable.ic_butterfly, R.drawable.ic_butterfly}; Random r1=new Random(); int a1=r1.nextInt(4); img0.setImage...
asked by 17.01.2018 / 16:59
1
answer

Place a select option inside a div with d3.js

I am trying to place a drop-down list (with select and option ) within a div and an SVG using d3.js, but it does not work and the select is not seen. I do not know if they are the properties or the reason why it happen...
asked by 30.11.2016 / 05:28
1
answer

Problem with the assembly of animated SVG

I'm having a problem with the left animation that does not work for me and with the size that is not applying to me like the next one. Why can it be? body{ padding: 40px; margin: 0; } .container{ width: 1170px; mar...
asked by 17.09.2018 / 22:30
1
answer

Fill an SVG using "fill"

When I have, for example, a hexagon made in SVG, which has only the edge drawn ... And when I do a: hover that hexagon is filled with the color of the edge ... How can I use the attribute (if can you call it that) "fill"? Imagine a hexagon wi...
asked by 06.04.2018 / 16:55
1
answer

SVG with height auto not shown in firefox

With an image in svg format I am having problems applying this CSS: width: 100%; height: auto; display: block; margin: 0 auto; max-width: 128px; max-height: 128px; The image appears in all browsers except Firefox....
asked by 20.11.2017 / 16:17
1
answer

Image does not work correctly in android app

I am developing an app using HTML + JavaScript + CSS with Cordova. This app uses SVG images to better suit the different resolutions, but I run into a problem: although the images are displayed well on my computer and in the android emulator, wh...
asked by 02.08.2016 / 14:56
0
answers

I need an input range in a [closed] curve

I need to find a way to make an input range (a slider) in a curve. The curve does not have to move but the ball has to slide through it following its trajectory (how the drawing shows). It also has to work for mobile (Android and iPhone...
asked by 11.12.2018 / 10:10
0
answers

Graph management painted with BonsaiJS

I am developing an application in which I want (among other things) to represent a system with a graph, in which each subsystem would be a node and each edge between nodes would represent the connection between the subsystems that it unites. I'm...
asked by 11.06.2018 / 12:13