{"id":29926698,"url":"https://github.com/ecomfe/grapher.js","last_synced_at":"2025-10-16T09:46:23.471Z","repository":{"id":30964422,"uuid":"34522586","full_name":"ecomfe/grapher.js","owner":"ecomfe","description":"JavaScript 3D Plot Library","archived":false,"fork":false,"pushed_at":"2018-11-26T01:27:24.000Z","size":568,"stargazers_count":21,"open_issues_count":0,"forks_count":8,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-05-25T08:05:19.002Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://ecomfe.github.io/grapher.js/doc/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ecomfe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-24T14:14:19.000Z","updated_at":"2022-12-13T19:55:36.000Z","dependencies_parsed_at":"2022-08-23T00:30:31.863Z","dependency_job_id":null,"html_url":"https://github.com/ecomfe/grapher.js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ecomfe/grapher.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecomfe%2Fgrapher.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecomfe%2Fgrapher.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecomfe%2Fgrapher.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecomfe%2Fgrapher.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ecomfe","download_url":"https://codeload.github.com/ecomfe/grapher.js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecomfe%2Fgrapher.js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268392202,"owners_count":24243297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"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":[],"created_at":"2025-08-02T12:42:52.154Z","updated_at":"2025-10-16T09:46:18.432Z","avatar_url":"https://github.com/ecomfe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Grapher.js\n\nGrapher.js is a library built on top of [qtek](https://github.com/pissang/qtek) for 3d plotting. It is relatively small (44kb after gzipped), easy to use and mobile friendly. Currently only surface graph is available.\n\n\n#### [Download v0.1](https://raw.githubusercontent.com/ecomfe/grapher.js/master/dist/grapher.js)\n\n#### [Documentation](http://ecomfe.github.io/grapher.js/doc/)\n\n\n## Quick Start\n\n#### Including Grapher.js\n\nYou can including Grapher.js by script tag and get a `grapher` global namespace.\n\n```html\n\u003cscript src=\"grapher.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    // Print version of Grapher.js\n    console.log(grapher.version);\n\u003c/script\u003e\n```\n\nIf you have an [AMD](https://github.com/amdjs/amdjs-api/wiki/AMD) environment.\n\n```javascript\nvar grapher = require('grapher');\n// Print version of Grapher.js\nconsole.log(grapher.version);\n\n\n// Or require grapher asynchronously\nrequire(['grapher'], function (grapher) {\n    // Create a surface graph    \n});\n```\n\n#### First Example\n\nAfter including Grapher.js. You can use the `Surface` class in `grapher` namespace to create a basic surface graph.\n\n```javascript\nvar surface = new grapher.Surface(canvas, {\n    color: ['green', 'red'],\n    xAxis: {\n        data: new grapher.generator.Sequence(-1, 1, 0.1)\n    },\n    yAxis: {\n        data: new grapher.generator.Sequence(-1, 1, 0.1)\n    },\n    zAxis: {\n        range: [-2, 2],\n        data: function (x, y) {\n            return Math.sin(x * Math.PI) * Math.sin(y * Math.PI);\n        }\n    },\n    autoRotate: false\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecomfe%2Fgrapher.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fecomfe%2Fgrapher.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecomfe%2Fgrapher.js/lists"}