Time scale Deprecation issue.

Hi, I am now using these plugin.
since i updated the chart.js to 2.9.1, there is some issues occurring.
this occurs even though i am not using time scale in option.
is this a bug?
i checked the stack overflow, or other sites, but i couldnt find same issue.

ISSUE
after the chart.js 2.9.1 update,
there is below error coming up, even though i am not using time.format.
it comes up 20times per second, and affecting the memory.
Also, this comes out when i use zoom plugin
スクリーンショット 2019-11-02 15 00 20

"time.format" is deprecated. Please use "time.parser" instead

PLUGIN USED
①financial plugin
②zoom plugin
③datalabel plugin
④chart.js streaming
⑤annotation plugin

options code:

	options: { 
					hover: {
						animationDuration: 0           // duration of animations when hovering an item 
					},
        			responsiveAnimationDuration: 0,    // animation duration after a resize 
					
					tooltips: { 
							enabled: true, 
							//intersect: true,
							position: "nearest",
							mode:"nearest",
                       
						},
					
					animation: {
					
						duration: 0                    // general animation time
					
					},            
					
					annotation: {
					
						events: ['click'],
						annotations:annotations	,			
                        
                        
                    drawTime: "afterDraw"
                },
						
						
					maintainAspectRatio: false,
							
					layout: {
						padding: {
							left: -5,
							right: 0,
							top: 0,
							bottom: -10
								}
							},		
					title: {
						display: false,
                        fontColor: "white",
						
					},
					legend: {
						display: false,
					},
                  
					scales: {
						yAxes:[{
							stacked: false,
							gridLines: {
								color: 'rgba(42,46,57,1)',
								lineWidth: 1
							},
							id:'y-axis-0',
                            ticks: {

                                fontColor: "white",
                            
                            }
						},
						{
							stacked: false,
							id:'y-axis-barchart',
							display:false,
							ticks: { 
								beginAtZero: true, 
								
								max:periods*700000,
							}
        
						}
						],
						xAxes: [{
							stacked: true,
							gridLines: {
								color: 'rgba(42,46,57,1)',
								lineWidth: 1
							},
							id:"normal",
                            ticks: {
								autoSkip:true,
								maxTicksLimit: 20, 
								fontColor: "white",
								min: new Date(candledata[candledata.length]).getTime(),
                                max: new Date(candledata[0]).getTime()

                            },
							time: {
								minUnit:'second',
                                // min: new Date(candledata[candledata.length]).getTime(),
                                // max: new Date(candledata[0]).getTime()
							},
							type: 'realtime',
							
							realtime: {
								
								duration: setduration,
								refresh: refres,
								delay: setdelay,
								pause: false,       // chart is not paused
								ttl: pasttime,
								//onRefresh: onRefresh 	
							},
						},
						
												
						],
					
					},
					plugins: { 
							
                        zoom : zooom,
						doughnutlabel:false,
                        datalabels: {

                            backgroundColor: "transparent",							
                            borderRadius: 4,
                            clip: true,
                            color: "white",
                            font: {
                                weight: 'bold'
                            },
                            formatter: function(value, context) {
                                
                                return  context.chart.data.array[context.dataIndex];
                                
                            }
                
                        },
                        streaming: { 
							frameRate: 10,   
                        	onRefresh: onRefresh_chart_bitmex,
                        
						
                        }, 
											
					   
				    }
			    }
			};

Author: Fantashit

1 thought on “Time scale Deprecation issue.

  1. This will be fixed in the next version of the zoom plugin. A fix has already been committed there and just needs to be released

Comments are closed.