flot: 프로필

2528 단어 flotjs
Flot Reference
Table of Contents
Introduction| Data Format| Plot Options| Customizing the legend| Customizing the axes| Multiple axes| Time series data| Customizing the data series| Customizing the grid| Specifying gradients| Plot Methods| Hooks| Plugins| Version number
Introduction
Consider a call to the plot function:
var plot = $.plot(placeholder, data, options)

The placeholder is a jQuery object or DOM element or jQuery expression that the plot will be put into. This placeholder needs to have its width and height set as explained in the README (go read that now if you haven't, it's short). The plot will modify some properties of the placeholder so it's recommended you simply pass in a div that you don't use for anything else. Make sure you check any fancy styling you apply to the div, e.g. background p_w_picpaths have been reported to be a problem on IE 7.
The plot function can also be used as a jQuery chainable property.  This form naturally can't return the plot object directly, but you can still access it via the 'plot' data key, like this:
var plot = $("#placeholder").plot(data, options).data("plot");

The format of the data is documented below, as is the available options. The plot object returned from the call has some methods you can call. These are documented separately below.
Note that in general Flot gives no guarantees if you change any of the objects you pass in to the plot function or get out of it since they're not necessarily deep-copied.
중국어:
다음 plot 함 수 를 호출 하 는 예 를 보십시오.
var plot = $.plot(placeholder, data, options)

그 자리 표시 자 (placeholder) 는 도표 에 넣 을 jquery 대상 이나 DOM 요소 나 jquery 표현 식 입 니 다.이 자리 표시 자 는 자신의 너비 와 높이 를 설정 해 야 합 니 다. (readme 파일 에서 설명 한 것 처럼)도 표 는 자리 차지 문자 의 속성 을 수정 하기 때문에 다른 일 에 사용 되 지 않 는 div 에 간단하게 들 어 가 는 것 을 추천 합 니 다.이 div 에 사용 할 스타일 을 검 사 했 으 니 다른 문제 가 없 을 것 입 니 다.
이 도표 함수 도 jquery 의 체인 특성 으로 할 수 있다.이러한 상황 은 자 연 스 럽 게 도표 대상 으로 돌아 가지 않 지만, 당신 은 여전히 'plot' 데이터 키 를 통 해 그것 을 방문 할 수 있 습 니 다. 이렇게:
var plot = $("#placeholder").plot(data, options).data("plot");

데이터 의 형식 은 아래 에 기록 되 어 있 으 며, 사용 가능 한 설정 옵션 으로 사용 할 수 있 습 니 다.호출 된 도표 대상 에서 호출 할 수 있 는 방법 이 있 습 니 다.이것들 은 모두 단독으로 아래 에 열거 되 어 있다.
메모: 전체적으로 말 하면 Flot 이 플러그 인 은 보증 할 수 없습니다. 만약 당신 이 도표 함수 에 들 어 온 대상 이나 도표 함수 에서 얻 은 대상 을 바 꾸 었 다 면 그들 은 필요 한 깊이 복사 되 지 않 았 기 때 문 입 니 다.

좋은 웹페이지 즐겨찾기