{"id":24343465,"url":"https://github.com/nigelhorne/html-d3","last_synced_at":"2026-04-20T08:02:46.123Z","repository":{"id":271241399,"uuid":"912814118","full_name":"nigelhorne/HTML-D3","owner":"nigelhorne","description":"Generate charts using D3.js","archived":false,"fork":false,"pushed_at":"2026-01-07T01:56:16.000Z","size":83,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-13T10:42:23.828Z","etag":null,"topics":["cpan","d3","perl","perl-module","perl5"],"latest_commit_sha":null,"homepage":"https://metacpan.org/pod/HTML::D3","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nigelhorne.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-06T12:57:15.000Z","updated_at":"2026-01-07T01:56:19.000Z","dependencies_parsed_at":"2026-01-08T03:08:45.854Z","dependency_job_id":null,"html_url":"https://github.com/nigelhorne/HTML-D3","commit_stats":null,"previous_names":["nigelhorne/d3-chart","nigelhorne/html-d3"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nigelhorne/HTML-D3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigelhorne%2FHTML-D3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigelhorne%2FHTML-D3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigelhorne%2FHTML-D3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigelhorne%2FHTML-D3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nigelhorne","download_url":"https://codeload.github.com/nigelhorne/HTML-D3/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigelhorne%2FHTML-D3/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32038456,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpan","d3","perl","perl-module","perl5"],"created_at":"2025-01-18T08:34:52.407Z","updated_at":"2026-04-20T08:02:46.115Z","avatar_url":"https://github.com/nigelhorne.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nHTML::D3 - A simple Perl module for generating charts using D3.js.\n\n# VERSION\n\nVersion 0.07\n\n# SYNOPSIS\n\n    use HTML::D3;\n\n    my $chart = HTML::D3-\u003enew(\n        width =\u003e 1024,\n        height =\u003e 768,\n        title =\u003e 'Sample Bar Chart'\n    );\n\n    my $data = [\n        ['Category 1', 10],\n        ['Category 2', 20],\n        ['Category 3', 30]\n    ];\n\n    my $html = $chart-\u003erender_bar_chart($data);\n    print $html;\n\n    $chart = HTML::D3-\u003enew(title =\u003e 'Sales Data');\n\n    $data = [\n        ['Product A', 100],\n        ['Product B', 150],\n        ['Product C', 200]\n    ];\n\n    $html = $chart-\u003erender_line_chart($data);\n    print $html;\n\n# DESCRIPTION\n\nHTML::D3 is a Perl module that provides functionality to create simple charts using D3.js.\nThe module generates HTML and JavaScript code to render the chart in a web browser.\n\n# METHODS\n\n## new\n\n    my $chart = HTML::D3-\u003enew(%args);\n\nCreates a new HTML::D3 object.\nAccepts the following optional arguments:\n\n- `width` - The width of the chart (default: 800).\n- `height` - The height of the chart (default: 600).\n- `title` - The title of the chart (default: 'Chart').\n\n## render\\_bar\\_chart\n\n    my $html = $chart-\u003erender_bar_chart($data);\n\nGenerates HTML and JavaScript code to render a bar chart. Accepts the following arguments:\n\n- `$data` - An array reference containing data points. Each data point should\nbe an array reference with two elements: the label (string) and the value (numeric).\n\nReturns a string containing the HTML and JavaScript code for the chart.\n\n## render\\_line\\_chart\n\n    my $html = $chart-\u003erender_line_chart($data);\n\nGenerates HTML and JavaScript code to render a line chart. Accepts the following arguments:\n\n- `$data` - An array reference containing data points. Each data point should\nbe an array reference with two elements: the label (string) and the value (numeric).\n\nReturns a string containing the HTML and JavaScript code for the chart.\n\n## render\\_line\\_chart\\_with\\_tooltips\n\n    $html = $chart-\u003erender_line_chart_with_tooltips($data);\n\nGenerates HTML and JavaScript code to render a line chart with mouseover tooltips.\nAccepts the following arguments:\n\n- `$data` - An array reference containing data points. Each data point should\nbe an array reference with two elements: the label (string) and the value (numeric).\n\nReturns a string containing the HTML and JavaScript code for the chart.\n\n## render\\_multi\\_series\\_line\\_chart\\_with\\_tooltips\n\n    $html = $chart-\u003erender_multi_series_line_chart_with_tooltips($data);\n\nGenerates HTML and JavaScript code to render a chart of many lines with mouseover tooltips.\n\nAccepts the following arguments:\n\n- `$data` - An reference to an array of hashes containing data points.\nEach data point should be an array reference with two elements: the label (string) and the value (numeric).\n\nReturns a string containing the HTML and JavaScript code for the chart.\n\n## render\\_multi\\_series\\_line\\_chart\\_with\\_animated\\_tooltips\n\n    $html = $chart-\u003erender_multi_series_line_chart_with_animated_tooltips($data);\n\nGenerates HTML and JavaScript code to render a chart of many lines with animated mouseover tooltips.\n\nAccepts the following arguments:\n\n- `$data` - An reference to an array of hashes containing data points.\nEach data point should be an array reference with two elements: the label (string) and the value (numeric).\n\nReturns a string containing the HTML and JavaScript code for the chart.\n\n## render\\_multi\\_series\\_line\\_chart\\_with\\_legends\n\n    $html = $chart-\u003erender_multi_series_line_chart_with_legends($data);\n\nGenerates HTML and JavaScript code to render a chart of many lines with animated mouseover tooltips.\n\nAccepts the following arguments:\n\n- `$data` - An reference to an array of hashes containing data points.\nEach data point should be an array reference with two elements: the label (string) and the value (numeric).\n\nReturns a string containing the HTML and JavaScript code for the chart.\n\n## render\\_multi\\_series\\_line\\_chart\\_with\\_interactive\\_legends\n\n    $html = $chart-\u003erender_multi_series_line_chart_with_interactive_legends($data);\n\nGenerates HTML and JavaScript code to render a chart of many lines with interactive legends to filter, highlight or modify elements based on legend selections.\n\nAccepts the following arguments:\n\n- `$data` - An reference to an array of hashes containing data points.\nEach data point should be an array reference with two elements: the label (string) and the value (numeric).\n\nReturns a string containing the HTML and JavaScript code for the chart.\n\n# SUPPORT\n\nThis module is provided as-is without any warranty.\n\nPlease report any bugs or feature requests to `bug-html-d3 at rt.cpan.org`,\nor through the web interface at\n[http://rt.cpan.org/NoAuth/ReportBug.html?Queue=HTML-D3](http://rt.cpan.org/NoAuth/ReportBug.html?Queue=HTML-D3).\nI will be notified, and then you'll\nautomatically be notified of progress on your bug as I make changes.\n\nYou can find documentation for this module with the perldoc command.\n\n    perldoc HTML::D3\n\nYou can also look for information at:\n\n# BUGS\n\nIt would help to have the render routine to return the head and body components separately.\n\n# AUTHOR\n\nNigel Horne \u003cnjh@bandsman.co.uk\u003e\n\n# LICENSE AND COPYRIGHT\n\nCopyright 2025 Nigel Horne.\n\nThis program is released under the following licence: GPL2\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnigelhorne%2Fhtml-d3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnigelhorne%2Fhtml-d3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnigelhorne%2Fhtml-d3/lists"}