I am using ng2-charts in my project, it is basically just a wrapper over chart.js so I have to install chart.js as well. According to the chart.js docs, moment is included by default in the build, and must be excluded by configuring webpack. Is there a way to configure the build in an angular application? Or some other way to exclude moment? Note, I am not using chart.js directly, it is used by the ng2-charts lib.
Remove moment from chartjs in angular app
752 views Asked by meblum At
1
There are 1 answers
Related Questions in ANGULAR
- Firebase link existing user to anonymous account?
- It doesnt always show all the books on my homepage
- Google adsense ads.txt status cannot be not found
- When I navigate to the URL'http://localhost:4200/', it redirects me back
- Ionic Angular Standalone ion-icon are not showing at all
- How to make Angular understand that view child is of a specific type, not a general ElementRef?
- vscode, debug angular, first time, doesn't debug, 2nd time stops at main.js then it's ok
- How to perform CRUD operations on a static JSON array in Angular? (without API)
- Ngrx props<>() method in createAction()
- How to animate rotation of an image inside input control?
- Detecting click inside and outside of the listening component in Angular
- Angular - type guard not narrowing types
- In node_modules file i am getting Angular genric error while using fontawesome in angular12
- Angular 16 sending null values to API
- GoogleCloud Error: Not Found The requested URL was not found on this server
Related Questions in WEBPACK
- storybook 7 does not recognize module declarations
- webpack module federation "could not find react-redux context value; please ensure the component is wrapped in a <Provider"
- The webpack bundle created and stored in the project directory is different than the one used to run the application with webpack-dev-server
- Webpack Federated module's Production build fails with "Self-reference dependency has unused export name" when importing lodash
- Webpack outputting too many files
- Browserify Error: Uncaught TypeError: Unable to determine current node version in bundle.js
- Vanilla extract Next.js storybook: Can't resolve @vanilla-extract/css/recipe'
- Uncaught TypeError: _projects_js__WEBPACK_IMPORTED_MODULE_2__.default is undefined
- How to force angular while executing take files from /dist folder (now webpack takes them from it's memory)
- Vue3 cannot import `@cornerstone/tools` , with error `ICRPolySeg.wasm`
- Webpack Module Federation remote.js not updating (possibly cached)
- Adding Submodule Paths in a Vite React Library
- Webpack 5 - Error: Module parse failed: Unexpected character '@'
- Rollup : Uncaught TypeError: Cannot destructure property 'class' of 'object null' as it is null
- Can not find module "uiohook-napi" after installation .exe in electron forge
Related Questions in CHART.JS
- How can I show mouseover on y-axis (Not on bars), sometimes my labels are too long (I have already shorten it) and there is no data record
- ChartJS indexing for datapoints
- chartjs v4 legend text not updating when using afterLayout
- Render Image update when I click legend chartjs
- Chartjs Background Color Settings
- Using Chart.js and the chart suddenly stopped working correctly
- Using chart.js 4.4.2 how to add items to the canvas along with the chart being created?
- How do i create stacked bar chart using ChartJs in Filament?
- Firebase Realtime Data - Reading Data, Trying to Graph It
- Group Bar chart tooltips showing time data as points instead of formatted HH:MM:SS in React Chart.js
- How to remove another duplicate y axes grid in chart.js when adding yAxes title
- React - accessing an array item returns the old value, despite the log being correct
- Update image yAxis chart.js
- Using HTML/CSS to customize Chart.js chart title
- html2canvas is not picking up chartjs correctly in the past breakpoint
Related Questions in ANGULAR-CLI
- FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory in angular application
- What is the use of "Hash: fec054139de85795" in ng serve?
- Angular esbuild @angular/compiler missing from bundle file
- Angular build for subfolder
- angular.json : configuration for multiple library projects
- Getting Cannot read property 'polyfillWrapFlushCallback' of undefined
- Unable to install angular-cli on Windows 7 (using npm)
- This version of CLI is only compatible with Angular versions ^15.0.0, but Angular version 17.2.4 was found instead
- angular cli installation cannot be completed
- how can i use yarn with PnP in an already angular project?
- Angular CLI and node-gyp : Cannot assign to read only property 'cflags' of object '#<Object>'
- Angular v10: how do i handle this overlay issue of p-calendar
- Node.js version v16.20.2 detected. The Angular CLI requires a minimum of v18.13
- Angular: How to extract i18n ids from json source files to outpur it in xlf files
- configure Angular app with powers of deployUrl without using due to depreciation warning. (not baseHref)
Related Questions in NG2-CHARTS
- Angular component ngDestroy not getting called and charts are not getting destroyed
- Is it possible to change barThickness for data points of a ChartJS Horizontal bar per dataset?
- i try to make pie graph on angular and i use Chartjs and i get error when i try run my project
- 'ChartsModule' does not appear to be an NgModule, Component, Directive, or Pipe class
- How to enable toolbar in chart for angular
- How to add space between legend and graph in ng2 chart?
- ng2-chart api data gets overwritten when I try populate a line chart
- Create a Clustered Stacked Bar Chart using Ng2-charts
- Angular ng2-chart with line chart using type category
- How to assign yAxisID to ChartJs datapoint
- Getting TypeError when trying to destroy Chart.JS object
- Why can't I put two charts on the same page Chart.Js and dynamically update the data
- How to remove Grid lines and axes in angular ng2-charts?
- Using Chart.js and Ng2-Chart in Cumulocity
- Angular ng2-charts show empty label
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
In the upcomming release (V3) of the
ng2-chartslib which uses Chart.js V3 it is not pressent anymore by default.According to the documentation of chart.js itself you can remove moment like so: