Sophie Proud

0

votes
0

answer
6

views

Custom diagram for Django display - Circle with dots connecting to each other

I am making a web app using Django. I want to create a chart (as shown in image), displaying a circle with names on the edges and lines connecting the names, according to a set of values supplied. Is there any pre-existing library I can use? How would you recommend I attempt to make this?
Sophie Proud
7

votes
1

answer
78

views

type “name” = Int - is it worth declaring?

I have a function that returns the Price of a product, it currently looks like priceOfProduct:: Int -> Int -> Int Is it worth declaring type Price = Int so that the function becomes priceOfProduct :: Int -> Int -> Price ? I thought of doing this, as I then go on to use tuples of Ints, which would ma...
Sophie Proud