2017-03-16 2 views
0

나는 zoomdata에서 시각화를 만들었습니다. 서버와 제대로 연결 중입니다. 이 URL에서 샘플을 가져 왔습니다. https://github.com/Zoomdata/SDK20-ApplicationFW-samples/blob/master/simpleSamples/changeColorAndFilter.htmlZommdata 예제 실행 오류

샘플이 제대로 실행됩니다. 하지만 라이브 서버에 연결하면 "필터 변경"버튼이 작동하지 않습니다. 색상 변경 버튼이 작동합니다. 다음 오류가 표시됩니다 :

Calling deprecated method filters.add; 
    zoomdata-client.js:65725:12 
Object { instance: Object, schema: Object, propertyPath: "instance", errors: Array[1], throwError: undefined, disableFormat: false } 

어떤 도움을 주시면 감사하겠습니다.

답변

0

그러나 코드를 약간 변경했는데 정상적으로 작동합니다.

이전 방법

window.viz.filters.add (filterSet [filterNum]);

변경 방법 :

window.viz.filters.changeFilters (filterSet [filterNum]);