The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Chart in HTML CSS, Astrological chart
sujatha
post Nov 18 2023, 09:27 AM
Post #1





Group: Members
Posts: 4
Joined: 18-November 23
Member No.: 29,091



I want to make chart using html css design, I have attached design I tried table, tr, td, it didn't work since it is combination of square and triangle. Is there any way to make this design happen? After this code design, i will take care of value passing to all squares and triangles. I need just that diagram code or support. Thanks for your support.



Attached thumbnail(s)
Attached Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
sujatha
post Nov 20 2023, 02:31 AM
Post #2





Group: Members
Posts: 4
Joined: 18-November 23
Member No.: 29,091



Thanks for all your feed backs, yes it is North Indian style Astrological Chart. Nodejs generated Data is ready to pass on each square and triangle. I already created south indian hora chart using table successfully. Just need html , css diagram for that.
Thanks,
Sujatha
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Nov 20 2023, 05:01 PM
Post #3


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,753
Joined: 9-August 06
Member No.: 6



Could you show us how a complete chart with data looks? An image would be fine. Just want to get a grip of how it looks.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Nov 20 2023, 05:49 PM
Post #4


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,753
Joined: 9-August 06
Member No.: 6



OK, using CharlesEF's idea, I came up with this. It's messy, but I can't think of another way. And I haven't figured out how to put a border around the whole thing - I think there is one in your image. I'd still like to see how the content looks. Maybe it isn't needed to rotate it back.

Note that when the table is rotated it sticks out of the box, so to speak. It even sticks out of the viewport. Hence the margins. This may make it hard to place on the page.

CODE

table    { transform: rotate(45deg);
           empty-cells: show;
           border-collapse: collapse;
           margin: 10em 0 0 10em }

td       { border: 2px solid;
           width: 6em; height: 6em }

td div   { transform: rotate(-45deg) }

#a .a    { border: none }
#a .b    { border-style: none solid solid none }
#a .c    { border-style: none none solid solid }
#a .d    { border: none }

#b .a    { border-style: none solid solid none }
#b .d    { border-style: none none solid solid }

#c .a    { border-style: solid solid none none }
#c .d    { border-style: solid none none solid }

#d .a    { border-style: none }
#d .b    { border-style: solid solid none none }
#d .c    { border-style: solid none none none }
#d .d    { border-style: none }


HTML
<table>
<tr id="a">
<td class="a"></td>
<td class="b"></td>
<td class="c"></td>
<td class="d"></td>
</tr>
<tr id="b">
<td class="a"></td>
<td><div>qwerty</div></td>
<td><div>qwerty</div></td>
<td class="d"></td>
</tr>
<tr id="c">
<td class="a"></td>
<td><div>qwerty</div></td>
<td><div>qwerty</div></td>
<tdv class="d"></td>
</tr>
<tr id="d">
<td class="a"></td>
<td class="b"></td>
<td class="c"></td>
<td class="d"></td>
</tr>
</table>


Attached Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic
sujatha   Chart in HTML CSS   Nov 18 2023, 09:27 AM
Jason Knight   What makes that image a "chart"? What...   Nov 18 2023, 06:12 PM
Christian J   I suppose it's an Indian astrological chart, s...   Nov 18 2023, 08:20 PM
pandy   How did Meyer create that chistmas tree again? But...   Nov 19 2023, 07:53 AM
Christian J   Maybe an image map could be used?   Nov 19 2023, 08:57 AM
CharlesEF   Could CSS help with this? table { transform...   Nov 19 2023, 12:56 PM
pandy   I think it could! And assuming the content sho...   Nov 19 2023, 09:32 PM
sujatha   Thanks for all your feed backs, yes it is North In...   Nov 20 2023, 02:31 AM
pandy   Could you show us how a complete chart with data l...   Nov 20 2023, 05:01 PM
pandy   OK, using CharlesEF's idea, I came up with thi...   Nov 20 2023, 05:49 PM
sujatha   Thank you so much for all your support putting tog...   Nov 21 2023, 07:51 AM
pandy   Thank you so much for all your support putting to...   Nov 23 2023, 02:31 PM
Christian J   I'm still not sure of the structural/semantic ...   Nov 24 2023, 07:48 AM
coothead   [indent] I'm still not sure of the structural...   Nov 24 2023, 08:58 AM
Christian J   What I cannot see, though, is why you keep on bee...   Nov 24 2023, 12:18 PM
coothead   [indent] I'm just curious about different app...   Nov 24 2023, 02:03 PM
coothead   Hi there sujatha, check out the attachment below ...   Nov 21 2023, 11:05 AM
CharlesEF   Hi there sujatha, check out the attachment below...   Nov 21 2023, 08:08 PM
coothead   [indent] ...but what do I know? [indent] Well,...   Nov 22 2023, 01:35 PM
pandy   Looks good, but I thought the purpose was to have ...   Nov 23 2023, 02:27 PM
coothead   [indent] ...but I thought the purpose was to have...   Nov 23 2023, 03:21 PM
coothead   [indent] The text can't be copied [indent...   Nov 23 2023, 03:53 PM
pandy   I couldn't copy. Right, and a DIV is equivale...   Nov 23 2023, 09:14 PM
CharlesEF   ...but what do I know? Well, hopefully, you no...   Nov 23 2023, 02:58 PM
coothead   [indent] To be honest, in all my years of program...   Nov 23 2023, 03:32 PM
CharlesEF   Luckily for you, it seems that you have never need...   Nov 24 2023, 01:34 AM
coothead   [indent] No, I mainly code business software. [...   Nov 24 2023, 09:19 AM
CharlesEF   So why the interest in general with the "Gene...   Nov 24 2023, 02:16 PM
coothead   [indent] Like Christian J, I like to see how thin...   Nov 24 2023, 02:41 PM
sujatha   Thank you so much!   Nov 24 2023, 06:56 AM
coothead   [indent] Thank you so much! [indent] To wh...   Nov 24 2023, 09:05 AM
Christian J   I still don't understand how the Indian astrol...   Nov 25 2023, 05:38 AM
coothead   [indent] I still don't understand how the Ind...   Nov 25 2023, 11:35 AM
Christian J   [indent] I still don't understand how the In...   Nov 25 2023, 05:27 PM
coothead   [indent] That page generates an image of the char...   Nov 25 2023, 06:11 PM
Christian J   I am surprised that you actually want/need to do ...   Nov 26 2023, 07:25 AM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 25th September 2024 - 02:07 AM