{"id":20893476,"url":"https://github.com/arction/lcjs-example-0003-pointlineplot","last_synced_at":"2025-03-12T19:14:45.123Z","repository":{"id":98723581,"uuid":"200630779","full_name":"Arction/lcjs-example-0003-pointLinePlot","owner":"Arction","description":"A demo application showcasing LightningChart JS Point line series","archived":false,"fork":false,"pushed_at":"2025-02-05T11:40:40.000Z","size":11937,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-05T12:31:12.370Z","etag":null,"topics":["demo","example","javascript","lcjs","lightningchart-js","performance","pointline-chart","pointline-plot","pointline-series","webgl","xy-chart"],"latest_commit_sha":null,"homepage":"https://www.arction.com/lightningchart-js-interactive-examples/examples/lcjs-example-0003-pointLinePlot.html","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Arction.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-05T10:05:35.000Z","updated_at":"2025-02-05T11:34:31.000Z","dependencies_parsed_at":"2025-02-10T10:32:30.520Z","dependency_job_id":null,"html_url":"https://github.com/Arction/lcjs-example-0003-pointLinePlot","commit_stats":null,"previous_names":[],"tags_count":4,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arction%2Flcjs-example-0003-pointLinePlot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arction%2Flcjs-example-0003-pointLinePlot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arction%2Flcjs-example-0003-pointLinePlot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arction%2Flcjs-example-0003-pointLinePlot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Arction","download_url":"https://codeload.github.com/Arction/lcjs-example-0003-pointLinePlot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243277498,"owners_count":20265352,"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","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":["demo","example","javascript","lcjs","lightningchart-js","performance","pointline-chart","pointline-plot","pointline-series","webgl","xy-chart"],"created_at":"2024-11-18T10:15:57.286Z","updated_at":"2025-03-12T19:14:45.113Z","avatar_url":"https://github.com/Arction.png","language":"JavaScript","readme":"# JavaScript Point Line Chart\n\n![JavaScript Point Line Chart](pointLinePlot-darkGold.png)\n\nThis demo application belongs to the set of examples for LightningChart JS, data visualization library for JavaScript.\r\n\r\nLightningChart JS is entirely GPU accelerated and performance optimized charting library for presenting massive amounts of data. It offers an easy way of creating sophisticated and interactive charts and adding them to your website or web application.\r\n\r\nThe demo can be used as an example or a seed project. Local execution requires the following steps:\r\n\r\n-   Make sure that relevant version of [Node.js](https://nodejs.org/en/download/) is installed\r\n-   Open the project folder in a terminal:\r\n\r\n          npm install              # fetches dependencies\r\n          npm start                # builds an application and starts the development server\r\n\r\n-   The application is available at _http://localhost:8080_ in your browser, webpack-dev-server provides hot reload functionality.\r\n\n\n## Description\n\n_Also known as a Line Series, Line Graph, Line Chart, and Line with Markers_\r\n\r\nThis example shows the basic usage of a line series with 'markers' for visual representation of the data points. Similarly to line series, it is drawn on a Cartesian coordinate system and represents the relationship between two variables. Line series display information as a series of data points connected by straight line segments in any direction. This type of series additionally draws data markers on top of the line at the location specified in a dataset.\r\n\r\nThe chart can be created with few simple lines of code:\r\n\r\n```javascript\r\n// Add a line series with markers using default X and Y axes.\r\nconst lineSeries = chart.addPointLineSeries()\r\n```\r\n\r\nLine Series with markers provides an ability to specify styles for both markers and lines individually.\r\n\r\n```javascript\r\nlineSeries.setStrokeStyle(lineStyleObject).setPointFillStyle(fillStyleObject)\r\n```\r\n\r\nIt shares the same API with the PointSeries, which allows configuring the visual representation of data markers.\r\n\r\n-   PointShape: _enum_\r\n\r\n    | PointShape |               Description               |\r\n    | :--------: | :-------------------------------------: |\r\n    | Rectangle  | The series with rectangle-shaped points |\r\n    |  Triangle  | The series with triangle-shaped points. |\r\n    |   Square   |  The series with square-shaped points.  |\r\n\r\n    PointShape must be specified upon creation of Series!\r\n\r\n    ```javascript\r\n    // Add a line series with markers using default X and Y axes. Select Circle PointShape.\r\n    const lineSeries = chart.addPointLineSeries({\r\n        pointShape: PointShape.Circle,\r\n    })\r\n    ```\r\n\r\n-   PointSize: _number_\r\n\r\n    ```javascript\r\n    lineSeries.setPointSize(5.0)\r\n    ```\r\n\r\n-   IndividualPointFill: _FillStyle_\r\n\r\n    The style indicates individual per point coloring. The style enables the usage of individual fill taken from the input.\r\n    The series can accept points in format `{ x: number, y: number, color: Color }`\r\n    If the color is not provided during the input of data points ( e.g. in format `{ x: number, y: number }` ), the configurable fallback color is used.\r\n\r\n    ```javascript\r\n    // Create the instance of IndividualPointFill fill style.\r\n    const individualStyle = new IndividualPointFill()\r\n    // Set red color as a fallback color\r\n    individualStyle.setFallbackColor(ColorRGBA(255, 0, 0))\r\n    ```\r\n\r\nAs it was mentioned before, the series accepts points in format `{ x: number, y: number: color: Color }` with specified IndividualPointFill to enable individual point coloring or `{ x: number, y: number }` for other fill styles. Any number of points can be added with a single call similarly to line series with point markers.\r\n\r\n-   Dataset without colors.\r\n\r\n    -   If IndividualPointFill is specified, the fallback color is used. Otherwise, the specified fill style is used.\r\n\r\n    ```javascript\r\n    // Dataset of Vec2 data points without color.\r\n    lineSeries.add([\r\n        { x: 5, y: 10 },\r\n        { x: 7.5, y: 20 },\r\n        { x: 10, y: 30 },\r\n    ])\r\n    ```\r\n\r\n-   Dataset with individual colors.\r\n\r\n    -   If IndividualPointFill is specified, the color from data point or fallback color is used. Otherwise, the specified fill style is used.\r\n\r\n    ```javascript\r\n    // Dataset of Vec2Color data points with individual color.\r\n    lineSeries.add([\r\n        // use red color if IndividualPointFill is specified\r\n        { x: 2.5, y: 0, color: ColorRGBA(255, 0, 0) },\r\n        // use fallback color if IndividualPointFill is specified\r\n        { x: 5, y: 10 },\r\n        // use green color if IndividualPointFill is specified\r\n        { x: 7.5, y: 20, color: ColorRGBA(0, 255, 0) },\r\n        // use blue color if IndividualPointFill is specified\r\n        { x: 10, y: 30, color: ColorRGBA(0, 0, 255) },\r\n    ])\r\n    ```\r\n\n\n## API Links\n\n* [Color palettes]\n* [XY cartesian chart]\n* [Point-line series]\n* [RGBA color factory]\n* [Solid FillStyle]\n* [Solid LineStyle]\n* [Individual point coloring]\n* [Point shapes]\n\n\n## Support\n\nIf you notice an error in the example code, please open an issue on [GitHub][0] repository of the entire example.\r\n\r\nOfficial [API documentation][1] can be found on [LightningChart][2] website.\r\n\r\nIf the docs and other materials do not solve your problem as well as implementation help is needed, ask on [StackOverflow][3] (tagged lightningchart).\r\n\r\nIf you think you found a bug in the LightningChart JavaScript library, please contact sales@lightningchart.com.\r\n\r\nDirect developer email support can be purchased through a [Support Plan][4] or by contacting sales@lightningchart.com.\r\n\r\n[0]: https://github.com/Arction/\r\n[1]: https://lightningchart.com/lightningchart-js-api-documentation/\r\n[2]: https://lightningchart.com\r\n[3]: https://stackoverflow.com/questions/tagged/lightningchart\r\n[4]: https://lightningchart.com/support-services/\r\n\n© LightningChart Ltd 2009-2022. All rights reserved.\r\n\n\n[Color palettes]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/variables/ColorPalettes.html\n[XY cartesian chart]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/classes/ChartXY.html\n[Point-line series]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/classes/PointLineSeries.html\n[RGBA color factory]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/functions/ColorRGBA.html\n[Solid FillStyle]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/classes/SolidFill.html\n[Solid LineStyle]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/classes/SolidLine.html\n[Individual point coloring]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/classes/IndividualPointFill.html\n[Point shapes]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/enums/PointShape.html\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farction%2Flcjs-example-0003-pointlineplot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farction%2Flcjs-example-0003-pointlineplot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farction%2Flcjs-example-0003-pointlineplot/lists"}